Repository navigation
fix(tui): make ctrl+b reachable in subagent views - #53892
Open
opencode-agent[bot] wants to merge 1 commit into
Open
opencode-agent[bot] wants to merge 1 commit into
opencode-agent[bot] wants to merge 1 commit into
Conversation
Subagent views keep the composer open, which switches the keymap to composer mode. session.background was only bound in base mode, so the hint showed but ctrl+b did nothing. Bind it in composer mode too.
opencode-agent
Bot
force-pushed
the
subagent-background-key
branch
from
October 8, 2026 08:06
481a4df to
31dc610
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In a subagent view, when the subagent is running a long shell command, the TUI shows "Press ctrl+b to move running work to the background", but pressing it does nothing.
Why
Subagent views keep the composer (subagent picker) open, which pushes the
composerkeymap mode.session.backgroundwas only bound in the base-mode layer, so ctrl+b was unreachable. The hint reads registered shortcuts, so it still rendered.Change
Also bind
session.backgroundincomposermode. The command still targets the viewed session, so in a subagent view it backgrounds the subagent's own blocking shell. Whether the subagent itself is foreground or background doesn't matter.Testing
Verified with
opencode-driveand a simulated LLM. A foregroundgeneralsubagent runs a real 12-second shell loop. Open the subagent (down + enter), wait for the hint, press ctrl+b.origin/v2: the hint stays visible and the shell keeps running in the foreground until it completes.Background, the hint disappears, and the subagent continues with its next response. The parent stays blocked on the subagent until it finishes.Also ran
bun run typecheckinpackages/tui.Requested by: @nexxeln (nexxel via Slack)