Skip to content

Windows: terminal tool stays in thinking state after dotnet build completes successfully #24926

Closed as not planned

Description

@tugkan98

Description

On Windows, running dotnet build from OpenCode completes successfully, but OpenCode remains stuck in the "thinking" state and never returns the final assistant response. I have to manually kill/restart OpenCode from Task Manager.

The child process appears to finish correctly. The problem seems to be in OpenCode's terminal/tool completion handling rather than in dotnet build itself.

Plugins

No response

OpenCode version

OpenCode Desktop v1.14.29

Steps to reproduce

  1. Open a .NET project in OpenCode Desktop on Windows.

  2. Ask the assistant to run:
    powershell dotnet build "sampleproject.csproj"

  3. Build completes and prints successful output.

  4. OpenCode stays in "thinking" state indefinitely.

  5. Manual kill/restart from Task Manager is required.

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

No response

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 29, 2026
  2. github-actions commented on Apr 29, 2026

    @github-actions
    Contributor

    This issue might be related to existing issues. Please check:

  3. tugkan98 commented on Apr 29, 2026

    @tugkan98
    Author

    I tested a workaround that avoids the OpenCode "thinking" hang on Windows.

    Instead of running dotnet build directly through the terminal tool, start it as a detached/background process and then read the generated status/log files separately.

    This avoids the hang because OpenCode does not wait on the dotnet build child process directly.

  4. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions