claude-code - 💡(How to fix) Fix [BUG] enter key regression causing new line [1 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#47973Fetched 2026-04-15 06:37:02
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

Error Messages/Logs

Code Example

none. doctor reports all is fine
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?

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

extent analysis

TL;DR

The Enter key issue in Windows Command Prompt may be related to a regression in the latest version of Claude Code, and trying a previous version or modifying the input handling could potentially resolve the issue.

Guidance

  • Verify that the issue is indeed specific to the Windows Command Prompt environment by testing Claude Code in a different terminal or shell.
  • Check if there are any configuration options or settings in Claude Code that could be affecting the Enter key behavior, such as input mode or newline handling.
  • Consider reaching out to the Anthropic API support or the Claude Code community to see if others have experienced similar issues and found a solution.
  • If possible, try downgrading to a previous version of Claude Code (e.g., the last working version mentioned) to see if the issue persists.

Example

No specific code snippet can be provided without more information about the internal workings of Claude Code or the Anthropic API.

Notes

The issue seems to be specific to the Windows Command Prompt environment, and the fact that it's a regression suggests that a previous version of Claude Code may have handled input differently. However, without more information about the changes made in the latest version, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Given the regression nature of the issue and the lack of error messages or logs, attempting to modify the input handling or trying a previous version of Claude Code may be the best course of action until a fix is available.

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