claude-code - 💡(How to fix) Fix Add keybinding to clear input box without cancelling in-progress tool calls [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#52377Fetched 2026-04-24 06:08:48
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3
RAW_BUFFERClick to expand / collapse

Feature request

Currently, pressing Escape (or Ctrl+C) clears the input box but also cancels any in-progress tool call. There is no way to clear only the typed text without interrupting an ongoing operation.

Expected behaviour

A dedicated keybinding (e.g. Escape, or a configurable binding) that clears the current input text only — without cancelling tool calls that are running in the background.

Current behaviour

Escape and Ctrl+C both act the same way: they cancel the in-progress tool use AND clear the input. If the user accidentally types something and wants to clear the input while Claude is working, they have no safe way to do so.

Why it matters

Users working on longer tasks (multi-step tool calls, repo analysis, etc.) sometimes want to clear a mistakenly typed message while Claude is still working. Today the only option interrupts the work entirely.

extent analysis

TL;DR

Implement a dedicated keybinding to clear input text without cancelling in-progress tool calls.

Guidance

  • Introduce a new keybinding (e.g., Ctrl+Backspace or a configurable option) to clear the input text without affecting ongoing operations.
  • Modify the existing Escape and Ctrl+C bindings to only clear the input text when no tool call is in progress.
  • Consider adding a visual indicator to distinguish between input text clearance and tool call cancellation.
  • Evaluate the feasibility of making the keybinding configurable to accommodate user preferences.

Example

// Pseudocode example, actual implementation may vary
if (toolCallInProgress) {
  // Handle Ctrl+C or Escape to cancel tool call
} else {
  // Handle Ctrl+C or Escape to clear input text
}

Notes

The exact implementation details may depend on the underlying framework, library, or technology stack used in the application.

Recommendation

Apply a workaround by introducing a new keybinding to clear input text without cancelling tool calls, as this approach allows for a more flexible and user-friendly solution.

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 Add keybinding to clear input box without cancelling in-progress tool calls [1 participants]