anomalyco / anomalyco/opencode

tui: ctrl+b background hint shown but keypress does nothing

Open
#49,216 0 comments 0 reactions 1 assignee View on GitHub

@simonklee is already working on this.

Since Sep 15, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

The v2 TUI shows a ctrl+b background hint under a running foreground subagent task, but pressing ctrl+b does nothing: the subagent keeps blocking the parent session, nothing is detached, and there is no error or toast. The hint appears to be intentional (there is a session_background keybind, a hidden session.background command, and a POST /experimental/session/:sessionID/background endpoint), so the keypress itself seems broken rather than the hint being stale.

Related but distinct: #36940 (hint renders when child work is already backgrounded).

Plugins

None

OpenCode version

2.0.3

Steps to reproduce
  1. Run with experimental background subagents enabled (the hint only renders when the capability is on).
  2. Prompt the main session to spawn a foreground (synchronous) subagent via the task tool (no background: true).
  3. While it runs (task row shows e.g. ↳ Bash Running …), observe the hint under it: ctrl+g view subagents · ctrl+b background.
  4. Press ctrl+b — both in the main transcript and while inside the subagent's session view (ctrl+g).
  5. Nothing happens.
Screenshot and/or share link

Operating System

macOS (Darwin 27.0.0, arm64)

Terminal

Ghostty (TERM=xterm-ghostty, COLORTERM=truecolor)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.