Skip to content

[Bug]: TUI freezes/becomes unresponsive after switching workspaces (OpenCode CLI) #2865

@Johannbr

Description

@Johannbr

Current Behavior

Issue where a running TUI session (specifically opencode CLI) becomes completely unresponsive after switching away from the active workspace and switching back.

The TUI interface is frozen on the last rendered frame. Input is not registered visually, and the session appears "broken." The only way to recover the terminal block is to send a generic kill signal (Ctrl+C), which dumps me back to the standard shell prompt.

Expected Behavior

The TUI should resume rendering and accept input immediately upon returning to the workspace, preserving the session state.

Steps To Reproduce

  1. Open a new terminal block in Workspace A.
  2. Run the opencode CLI tool.
  3. Switch to Workspace B (or any other workspace).
  4. Switch back to Workspace A.
  5. Attempt to interact with the opencode interface (scroll, type, etc.).

Wave Version

v0.13.1

Platform

macOS

OS Version/Distribution

MacOS 26.2

Architecture

arm64

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNeeds triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions