Skip to content

Regression: /exit and Ctrl+C kill parent terminal process on Windows since v1.14.25 #28673

Description

@liangweidonggood

Description

Since v1.14.25, using /exit or Ctrl+C to exit opencode kills the parent terminal process (pwsh/cmd) on Windows, instead of returning to the shell prompt. The exit command (without /) works fine.

Bisect Result

Version /exit / Ctrl+C exit
1.14.21
1.14.24
1.14.25
1.15.6

Root Cause

The dependency @opentui/core and @opentui/solid were bumped from 0.1.99 to 0.1.103 in v1.14.25 (via the switch from pinned versions to workspace catalog references in packages/opencode/package.json).

This OpenTUI version bump changed how the TUI process terminates on Windows, causing the parent shell to be killed with exit code 2148734499 (0x80131523).

Environment

  • OS: Windows 11 Pro
  • Terminal: WezTerm (also reproduces in Windows Terminal)
  • Shell: pwsh 7
  • opencode: installed via scoop

Related

Workaround

Pin opencode to v1.14.24: scoop install opencode@1.14.24 && scoop hold opencode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions