Skip to content
This repository was archived by the owner on Sep 30, 2026. It is now read-only.

fix(tui): disable Alt+B/Ctrl+B move-tool-to-background keypress - #13

Merged
yjuyjuy merged 1 commit into
masterfrom
fm/disable-altb-detach
Aug 12, 2026
Merged

yjuyjuy merged 1 commit into
masterfrom
fm/disable-altb-detach

Conversation

@yjuyjuy

@yjuyjuy yjuyjuy commented Aug 12, 2026

Copy link
Copy Markdown
Owner

What

Turn OFF the Alt+B / Ctrl+B keypress that moves a currently-running tool to the background.

Both key handlers in crates/jcode-tui/src/tui/app/remote/key_handling.rs intercepted a RunningTool status and called remote.background_tool() with a "Moving tool to background..." notice. This removes both keypress paths so Alt+B and Ctrl+B are purely readline word-back cursor motions again, and drops the now-inaccurate tip in info_widget_tips.rs that advertised the shortcut.

Scope

  • Removed: the two keypress-to-detach branches (Alt+B ~line 471, Ctrl+B ~line 613) and the Alt+B tip.
  • Left intact: the programmatic background-tool machinery (Request::BackgroundTool, the agent background_tool_signal, the bg tool). Only the hardcoded keypress binding is removed, per the request.

Validation

  • cargo build -p jcode-tui: clean.
  • cargo clippy -p jcode-tui: clean on touched files.
  • Verified against the fork base (v0.75.3-era code); the two send sites and tip matched the described locations.

No behavior change to programmatic backgrounding; net diff is 11 deletions across 2 files.

The Alt+B and Ctrl+B key handlers intercepted a running tool and detached
it to the background via remote.background_tool() plus a 'Moving tool to
background...' notice. Remove both keypress paths so Alt+B and Ctrl+B are
purely readline word-back cursor motions again, and drop the now-inaccurate
tip that advertised the shortcut.

The programmatic background_tool machinery (Request::BackgroundTool, the
agent background_tool_signal, and the bg tool) is left intact for
programmatic use; only the hardcoded keypress-to-detach binding is removed.
@yjuyjuy
yjuyjuy merged commit c4b7f2f into master Aug 12, 2026
5 of 11 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants