[BUG]
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?
Title: Shift+Enter submits prompt instead of inserting newline, leaves ghost text in buffer
Description:
Shift+Enter (and Escape+Enter) submits the prompt instead of inserting a newline. After submission, the original text remains in the input buffer as ghost text.
Steps to reproduce:
- Open Claude Code in any terminal
- Type some text
- Press Shift+Enter to add a new line
- Prompt submits immediately instead of adding a newline
- Original text remains in the input buffer
Expected behavior:
Shift+Enter should insert a newline without submitting.
Actual behavior:
Prompt submits and text persists in the buffer.
Environment:
- Claude Code version: 2.1.88
- OS: macOS (Mac Mini)
- Terminals tested: VS Code integrated terminal, Mac Terminal (standalone)
- Same behavior in both terminals
What Should Happen?
should create a new line
<img width="782" height="624" alt="Image" src="https://github.com/user-attachments/assets/8e020dd5-e9b1-40ab-a060-94caca71aa6a" />
Error Messages/Logs
Steps to Reproduce
talked to Claude Card and Claude Desktop
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.88.
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗