Skip to content

Long-running shell commands (e.g. Gradle build) hang even after “BUILD SUCCESSFUL” #25038

Description

@universe-st

Description

Image

Describe the bug
When executing a long-running shell command (e.g., an Android Gradle build), the process frequently hangs even after the command has completed successfully. The output clearly shows BUILD SUCCESSFUL, yet the task remains stuck and never returns control. It stays in this state for a long time until I manually pause the execution and ask the model to continue.

To Reproduce

  1. Issue a time-consuming shell command, such as ./gradlew assembleDebug.
  2. Wait for the build to finish normally.
  3. Observe that the final output confirms success, but the process does not exit – it just hangs.

Expected behavior
Once the shell command finishes, the process should exit immediately and control should be returned to the conversation so that the workflow can proceed without manual intervention.

Environment:

  • opencode version: v1.14.30
  • OS: Windows 11
  • Shell: powershell
  • Command type: long-running build tasks (Android Gradle, but likely reproducible with other long commands)

Additional context
This happens very consistently with time-consuming shell commands and severely interrupts the flow, requiring a manual pause every time. It is not specific to a single project or build command.

Plugins

No response

OpenCode version

v1.14.30

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

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