You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When using OpenCode, the build command executes but freezes for a long time. Although the task is complete, the AI does not continue. #19252
If your issue is the same, please add a thumbs up or comment on that issue instead so we can track it in one place.
Also, the Steps to Reproduce field is empty. Adding reproduction steps (e.g., what command you ran, what the build command was, how long it froze) would help maintainers investigate this faster.
I have the exact same issue. I am working on a Gradle Java project and using oh-my-opencode plugin too. The tasks finishes (no errors) and the harness get stuck.
This does not happen if you instruct the AI to use --no-daemon. Opencode seems to recognize that the gradle daemon is still running (which it should, gradle is expensive to spin up) and thinks the command isn't finished yet for some odd reason
Its annoying to add this to every AGENTS.md file/instruct the AI to do that every time tho. So it would be very nice to get a fix for this
Activity
github-actions commentedon Mar 26, 2026
This issue might be a duplicate of an existing issue. Please check:
opencode runhangs after completing tool calls — process never exits #17516:opencode runhangs after completing tool calls — describes the same symptom where the task completes but the AI/process does not continueIf your issue is the same, please add a thumbs up or comment on that issue instead so we can track it in one place.
Also, the Steps to Reproduce field is empty. Adding reproduction steps (e.g., what command you ran, what the build command was, how long it froze) would help maintainers investigate this faster.
andrej-szontagh commentedon Apr 5, 2026
I have the exact same issue. I am working on a Gradle Java project and using
oh-my-opencodeplugin too. The tasks finishes (no errors) and the harness get stuck.Eselfin31 commentedon Apr 12, 2026
This has been an issue for 3 weeks and still no fix
hgylyq commentedon Apr 29, 2026
same problem, any solution?
tolgakisaogullari commentedon May 11, 2026
same issue
nblomquist commentedon May 15, 2026
I too am having this problem.
foto-andreas commentedon May 19, 2026
same here
tomasVetclaims commentedon May 26, 2026
Same problem, if I close and reopen a session it continues, but from time to time it gets stuck in the Build command indefinitely
Tofame commentedon Jun 10, 2026
still an issue
davidmayr commentedon Jun 15, 2026
This does not happen if you instruct the AI to use --no-daemon. Opencode seems to recognize that the gradle daemon is still running (which it should, gradle is expensive to spin up) and thinks the command isn't finished yet for some odd reason
Its annoying to add this to every AGENTS.md file/instruct the AI to do that every time tho. So it would be very nice to get a fix for this
rlnt commentedon Jun 16, 2026
If it's stuck, you can also kill the Java process, and it continues. It's annoying, but a valid workaround for now.
I feel like this should be prioritized more since it's very unbearable to work with Gradle projects right now. @rekram1-node Please take a look.
github-actions commentedon Aug 16, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.