[BUG] enter key regression causing new line

Resolved 💬 3 comments Opened Apr 14, 2026 by gccgkop Closed Apr 18, 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?

Description: Enter key creates newlines instead of submitting queries in Windows Command Prompt
Environment: Windows Command Prompt
Issue: Enter key inserts newlines instead of submitting queries after starting a new session. This is a regression that appeared recently.

Actual Behavior: Enter key creates newlines, preventing query submission
Additional Context: Issue persists across terminal restarts and appears to be specific to Command Prompt environment.

What Should Happen?

expectation is that query would submit to ai server and return response but only new line occurs.

Error Messages/Logs

none. doctor reports all is fine

Steps to Reproduce

Open Windows Command Prompt
Start Claude Code session with claude command
Type any query
Press Enter
Observe that Enter creates newline instead of submitting
Attempted Solutions (all failed):
Backslash escape method (\ + Enter)
Ctrl+J (correctly creates newlines as expected)
Paste mode (Ctrl+V)
Alt+Enter (triggers Windows fullscreen instead)

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

same version was working in a previous session but was starting to have pasting issues.

Claude Code Version

v2.1.107

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗