anomalyco / anomalyco/opencode
tui: ctrl+b background hint shown but keypress does nothing
@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
- Run with experimental background subagents enabled (the hint only renders when the capability is on).
- Prompt the main session to spawn a foreground (synchronous) subagent via the
tasktool (nobackground: true). - While it runs (task row shows e.g.
↳ Bash Running …), observe the hint under it:ctrl+g view subagents · ctrl+b background. - Press
ctrl+b— both in the main transcript and while inside the subagent's session view (ctrl+g). - Nothing happens.
Screenshot and/or share link
—
Operating System
macOS (Darwin 27.0.0, arm64)
Terminal
Ghostty (TERM=xterm-ghostty, COLORTERM=truecolor)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.