claude-code - 💡(How to fix) Fix [BUG] Keybinding null binding for alt+left is applied inconsistently — key slips through after 2-3 presses [2 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#47742Fetched 2026-04-15 06:43:33
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×5commented ×2

Error Message

Error Messages/Logs

Code Example

N/A
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Setting alt+left to null in keybindings.json to disable Option+Left does not hold consistently. It works for the first 1-2 presses, but on the 3rd or 4th press the key slips through and wipes text in the input box.

keybindings.json { "bindings": [ { "context": "Chat", "bindings": { "alt+left": null } } ] }

What Should Happen?

Expected behavior Option+Left is always a no-op — never reaches the terminal or modifies input.

Actual behavior Option+Left is intercepted for the first 1-2 presses, then slips through and the terminal's default escape sequence behavior wipes input text.

Error Messages/Logs

N/A

Steps to Reproduce

  1. Add the above keybinding to ~/.claude/keybindings.json
  2. Open Claude Code and type some text in the chat input
  3. Press Option+Left repeatedly (3-4 times)
  4. On the 3rd or 4th press, the key is not intercepted and text is wiped

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.105

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

No response

extent analysis

TL;DR

The issue may be resolved by adjusting the keybinding configuration to prevent the default escape sequence behavior from interfering with the intended no-op behavior for Option+Left.

Guidance

  • Review the keybindings.json file to ensure that the alt+left binding is correctly set to null for the "Chat" context, as shown in the provided example.
  • Verify that there are no other keybindings that may be conflicting with the intended behavior of alt+left.
  • Test the keybinding with different sequences of presses to determine if the issue is specific to the 3rd or 4th press, or if it occurs randomly.
  • Consider adding additional logging or debugging statements to the Claude Code application to gain more insight into how the keybindings are being processed.

Example

No code snippet is provided, as the issue appears to be related to configuration rather than code.

Notes

The root cause of the issue is unclear, and it may be related to the interaction between the Claude Code application and the underlying terminal or operating system. Further investigation and debugging may be necessary to determine the cause and develop a permanent fix.

Recommendation

Apply workaround: Adjust the keybinding configuration and test with different sequences of presses to determine if the issue can be mitigated. This approach is recommended because it allows for a targeted test of the keybinding behavior without requiring significant changes to the application code.

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] Keybinding null binding for alt+left is applied inconsistently — key slips through after 2-3 presses [2 comments, 2 participants]