Skip to content

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

Closed

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).

Activity

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

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • No issue template was used. Please use one of the three required templates: Bug Report, Feature Request, or Question.
    • The issue reads as AI-generated (extensive structured analysis, code file references with line numbers, multi-section breakdown). We do not accept AI-generated walls of text — please describe your actual experience in your own words.
    • Bug reports should include your system/environment info and concrete steps or context for reproduction.

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


    This issue might be a duplicate of existing open issues. Please check:

    If you believe this was flagged incorrectly, please let a maintainer know.

  3. changed the title [-]Intermittent session hangs indefinitely (shows running forever) when stream stalls[/-] [+]Intermittent hang: session stays running forever until manual interrupt[/+] on Feb 23, 2026
  4. nyl199310 commented on Feb 23, 2026

    @nyl199310
    Author

    I updated this issue to the Bug Report template format and added my real usage context (environment + repro steps).\n\nIf you want stricter repro data, I can attach DEBUG logs from the next occurrence.

  5. github-actions commented on Feb 23, 2026

    @github-actions
    Contributor

    Thanks for updating the issue! It now follows the contributing guidelines with a proper Bug Report template, real description, steps to reproduce, and system information. The needs:compliance label has been removed.

  6. github-actions commented on Apr 25, 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

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