claude-code - 💡(How to fix) Fix [Bug] Cmd+Delete clears entire input instead of single line [1 comments, 2 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#49685Fetched 2026-04-17 08:34:15
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×5closed ×1commented ×1
RAW_BUFFERClick to expand / collapse

Bug Description Claude Code has a regression in how it handles text. Previously, if I hit cmd+delete it would delete only one line. Now it clears the entire text input irrecoverably, which has caused me to lose multiple messages and retype from scratch.

(I realize that the old way of clearing one line at a time was really annoying if you wanted to go back for a long message -- but you've always been able to hit esc + esc to clear the text input, and now my muscle memory is working against me!)

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.112
  • Feedback ID: 803430b2-c5c9-4d77-bd70-027c5c8db8de

extent analysis

TL;DR

The issue can be mitigated by using the esc + esc shortcut to clear the text input instead of cmd+delete.

Guidance

  • Verify that the esc + esc shortcut is working as expected to clear the text input.
  • Try to retrain muscle memory to use esc + esc for clearing the text input to avoid accidental deletion of entire messages.
  • If the old behavior of deleting one line at a time is still desired, consider submitting a feature request to restore this functionality.
  • Be cautious when using cmd+delete to avoid losing work, and consider typing in a separate editor or notes app if working on long messages.

Notes

The issue seems to be specific to the darwin platform and vscode terminal, and may not affect other environments.

Recommendation

Apply workaround: use esc + esc to clear the text input, as this is the currently supported method for clearing the text input without losing work.

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] Cmd+Delete clears entire input instead of single line [1 comments, 2 participants]