-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Intermittent hang: session stays running forever until manual interrupt #14769
Description
Description
I occasionally hit a hang where OpenCode stays in running / thinking forever.
When it happens, no new tool output or assistant text appears, but the session does not return to idle. If I press Esc twice to interrupt, it usually recovers, and retrying the same prompt often works.
This is low-frequency (intermittent), so I don't have a deterministic repro yet, but it keeps happening in normal usage.
It might be related to stream/network interruptions, but I can't confirm.
Possibly related: #11865 #12234 #13841 #14676.
Plugins
None (no custom plugins enabled in this workspace).
OpenCode version
v1.2.x (I can provide exact patch version if needed).
Steps to reproduce
- Start a normal coding session.
- Ask for tasks that use multiple tool calls (for example read/glob/grep/bash/task).
- Continue working for a while.
- Occasionally, the session stops producing progress but still shows as running.
- Wait several minutes (still stuck), then press
Esc/Escto interrupt. - Retry the same prompt; it often succeeds.
Screenshot and/or share link
No share link yet. I can attach logs on the next occurrence.
Operating System
Linux
Terminal
Terminal emulator on Linux (can share exact terminal app if needed).