[BUG] Shift+Enter newline regression in v2.1.91 (works in v2.1.87, Warp terminal)
Status Fixed / completed
Reported on v2.1.70
Maintainer reply ✓ Yes — claude[bot]
Workaround ✓ Mentioned in description ↑
Activity 7 comments · opened Apr 3, 2026 · closed Apr 17, 2026
💡 Likely answer: A maintainer (claude[bot], contributor)
responded on this thread — see the highlighted reply below.
Description
Shift+Enter no longer inserts a newline as of v2.1.91. This worked correctly in v2.1.87.
This is a new regression, separate from #31371 (which was about v2.1.69–2.1.70).
Steps to Reproduce
- Install Claude Code v2.1.91
- Open Warp terminal on macOS
- Run
claude - Type text, press Shift+Enter
Expected Behavior
A newline is inserted in the chat input.
Actual Behavior
The message is submitted (same as pressing Enter).
Key Observation
In the same Warp window, tabs still running v2.1.87 have working Shift+Enter, while new tabs running v2.1.91 do not. This confirms the regression is in Claude Code's input handler between these two versions, not in Warp.
Additional Details
- Adding
shift+enter: chat:newlineto~/.claude/keybindings.jsondoes not fix the issue. /terminal-setupreports "Shift+Enter is natively supported in Warp" but it does not work.- Workaround: Ctrl+J still works for inserting newlines.
Environment
- macOS (Darwin 25.4.0)
- Warp terminal
- Claude Code v2.1.91 (broken), v2.1.87 (working)
7 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Update: Setting the environment variable
CLAUDE_CODE_NO_FLICKER=0appears to fix the issue. Shift+Enter works correctly again in v2.1.91 with this flag.This suggests the regression is related to the flicker-reduction rendering changes introduced in recent versions.
Confirming on macOS native app v2.1.91, running in Cursor's integrated terminal. Shift+Enter submits instead of inserting a newline. Initially suspected
CLAUDE_CODE_NO_FLICKER=1(fullscreen render), but disabling it (CLAUDE_CODE_NO_FLICKER=0) does not fix the issue.Update: after further investigation, running
cat -vin Terminal.app confirms Shift+Enter sends a plain CR (no ESC prefix) — the terminal itself is not sending a distinct key sequence. This started after upgrading to macOS 26.4 (Tahoe) on a new Mac (M5 Pro). The same shortcuts work fine in Warp, which encodes modifier keys differently. This may be a macOS-level regression in how Terminal.app handles modifier+key encoding, rather than (or in addition to) a Claude Code issue.Can confirm that
CLAUDE_CODE_NO_FLICKER=1also breaksalt+delete(word deletion) in Warp terminal on macOS — not just Shift+Enter.Environment:
CLAUDE_CODE_NO_FLICKER=1set in~/.claude/settings.jsonBehavior:
alt+deletedoes nothing inside Claude Code inputFix:
Removing
CLAUDE_CODE_NO_FLICKERfromsettings.jsonrestoresalt+deleteword deletion immediately.So the no-flicker renderer seems to be swallowing multiple key sequences in Warp beyond just Shift+Enter. May be worth investigating what other keybindings are affected by this rendering mode on Warp specifically.
FYI: seems like the problem is solved in 2.1.107 🎉 thanks @anthropic-team!
This issue was fixed as of version 2.1.97.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.