Backspace on empty Chat input exits session — should be no-op; only /exit should quit
Resolved 💬 1 comment Opened Jun 2, 2026 by DatabaseMN Closed Jul 5, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When the Chat input is empty, pressing Backspace exits the Claude Code session immediately with no confirmation. This is destructive — the only intended exit path should be /exit. Backspace cannot be null-bound via keybindings.json without breaking normal text editing.
What Should Happen?
Expected behavior: Backspace on empty input is a no-op in the Chat context.
Error Messages/Logs
Steps to Reproduce
Backspace on an empty line,
Esc also has multiple functions, but can be disabled for exit.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Claude Code 2.1.150
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
Linux Kernel 6.14.0-37 Gnome Terminal V 3.52.0 for GNOME 46
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗