Skip to content

Shell/session interrupt regression in 1.4.2 can leave TUI stuck and shutdown timing out #21743

@samiralibabic

Description

@samiralibabic

Description

Description

On 1.4.2, interrupting a long-running shell/session action can leave OpenCode stuck instead of returning cleanly to idle.

Observed behavior:

  • Esc twice does not reliably interrupt
  • the session can remain busy/stuck
  • TUI shutdown can end with:
    worker shutdown failed
  • downgrading to 1.3.17 fixes it

This appears to be a regression in shell/session cancellation behavior introduced after 1.3.17.

Plugins

Custom plugin present in my normal setup (rexd-target), but the same setup works on 1.3.17 and breaks on 1.4.2.

OpenCode version

1.4.2

Steps to reproduce

  1. Start a long-running shell/session action in TUI
  2. Press Esc twice to interrupt
  3. Observe that interruption is unreliable and the session may remain stuck
  4. Exit TUI
  5. Observe possible shutdown timeout / worker shutdown failure

Screenshot and/or share link

No response

Operating System

macOS

Terminal

Safari for web repro; TUI repro in normal terminal usage

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions