claude-code - 💡(How to fix) Fix [BUG] Ctrl+B backgrounds running tool on single press despite UI showing double-press requirement [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46973Fetched 2026-04-13 05:44:52
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4
RAW_BUFFERClick to expand / collapse

Bug Description

The UI prompt during tool execution shows Ctrl+B, Ctrl+B (double-press) to background a running task, but pressing Ctrl+B just once immediately backgrounds it.

Expected Behavior

Either:

  • The double-press requirement shown in the UI should be enforced (requiring Ctrl+B, Ctrl+B), consistent with how Ctrl+F, Ctrl+F works for terminating background agents, OR
  • The UI should be updated to show a single Ctrl+B if single-press is the intended behavior

Steps to Reproduce

  1. Start a tool that takes a few seconds (e.g. a bash command)
  2. Press Ctrl+B once
  3. The task is immediately backgrounded, despite the UI indicating Ctrl+B, Ctrl+B is required

Environment

  • OS: Linux (Ubuntu, kernel 6.8.0)
  • Terminal: bash (no tmux/byobu/screen)
  • Claude Code: latest

extent analysis

TL;DR

Update the UI to reflect the correct shortcut for backgrounding a task, which appears to be a single Ctrl+B press.

Guidance

  • Review the code handling keyboard shortcuts to ensure it aligns with the intended behavior of requiring either a single or double press of Ctrl+B.
  • Verify the shortcut behavior in the code by checking for any event handlers or listeners attached to the Ctrl+B key combination.
  • Consider updating the UI to consistently reflect the actual behavior, which currently seems to background tasks with a single Ctrl+B press.
  • Test the shortcut behavior with other similar keyboard shortcuts (like Ctrl+F, Ctrl+F) to ensure consistency across the application.

Example

No specific code example can be provided without access to the application's codebase, but the fix would involve updating either the UI display or the event handler for the Ctrl+B shortcut.

Notes

The issue seems to stem from a discrepancy between the UI's instructions and the application's actual behavior. Without the specific code, it's challenging to provide a precise fix, but aligning the UI with the behavior or adjusting the behavior to match the UI should resolve the issue.

Recommendation

Apply a workaround by updating the UI to show a single Ctrl+B if that is the intended and actual behavior of the application, as it seems to be the case based on the provided steps to reproduce.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Ctrl+B backgrounds running tool on single press despite UI showing double-press requirement [1 participants]