Skip to content

Intermittent hang: session stays running forever until manual interrupt #14769

@nyl199310

Description

@nyl199310

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

  1. Start a normal coding session.
  2. Ask for tasks that use multiple tool calls (for example read/glob/grep/bash/task).
  3. Continue working for a while.
  4. Occasionally, the session stops producing progress but still shows as running.
  5. Wait several minutes (still stuck), then press Esc / Esc to interrupt.
  6. 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).

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions