Skip to content

tui: background hint appears when child work is already backgrounded #36940

Description

@kitlangton

Summary

The TUI shows Press ctrl+b to move running work to the background even when every visible child task was launched in the background from the start. This makes the hint misleading because there is no visible foreground child work to move.

Environment

  • opencode version: 0.0.0-next-15555
  • OS: Darwin 25.5.0 (darwin arm64)
  • Terminal: WarpTerminal (TERM=xterm-256color, COLORTERM=truecolor)
  • Shell: /bin/zsh
  • Install/channel: next
  • Active plugins: @warp-dot-dev/opencode-warp, debug-workspace-plugin.ts, share-with-team.ts

Reproduction

  1. Start a parent turn that launches three Explore subagents with background: true from the start.
  2. Observe that each visible child task row says Background.
  3. Before pressing Ctrl+B at any point, observe the hint: Press ctrl+b to move running work to the background.

Expected Behavior

Do not show the backgrounding hint when all visible child tasks are already backgrounded, or use explicit wording if the hint refers to backgrounding the active parent turn rather than the visible child tasks.

Actual Behavior

The TUI shows the backgrounding hint despite all visible child tasks already being backgrounded.

Additional Context

The parent turn was still active when the hint appeared. Ctrl+B had never been pressed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.0bugSomething isn't workingtui

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions