claude-code - 💡(How to fix) Fix [BUG] Enter key does not submit prompt in Claude Code CLI on Windows 11 [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#51717Fetched 2026-04-22 07:54:43
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Pressing Enter in the Claude Code CLI does not submit the prompt. The cursor moves to a new line instead of sending the message. This makes the CLI completely unusable from the terminal.

Error Message

Error Messages/Logs

Root Cause

Pressing Enter in the Claude Code CLI does not submit the prompt. The cursor moves to a new line instead of sending the message. This makes the CLI completely unusable from the terminal.

Fix Action

Workaround

Using the Claude Code VS Code extension works correctly. The issue is specific to the terminal CLI.

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

Pressing Enter in the Claude Code CLI does not submit the prompt. The cursor moves to a new line instead of sending the message. This makes the CLI completely unusable from the terminal.

Environment

  • OS: Windows 11 Home Single Language, build 10.0.26200
  • Shell: bash (Git Bash)
  • Claude Code version: 2.1.116

Steps to reproduce

  1. Open a terminal (Git Bash on Windows 11)
  2. Run claude
  3. Type any message
  4. Press Enter
  5. The prompt does not send — cursor moves to a new line

What Should Happen?

Expected behavior

Pressing Enter submits the prompt and Claude responds.

Actual behavior

Enter creates a new line instead of submitting. The CLI is stuck and the only way to interact is via the VS Code extension.

Workaround

Using the Claude Code VS Code extension works correctly. The issue is specific to the terminal CLI.

Additional context

This may be related to how the CLI handles keyboard input in Windows native terminals. Shift+Enter and other combinations also do not submit.

Error Messages/Logs

Steps to Reproduce

  1. Type any message using the keyboard
  2. Press Enter (neither Enter nor Shift+Enter submits the prompt)
  3. The cursor moves to a new line instead of sending
  4. The only way to exit is Ctrl+C

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.116

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

No response

extent analysis

TL;DR

The issue can likely be resolved by modifying how the Claude Code CLI handles keyboard input in Windows native terminals.

Guidance

  • Investigate the difference in keyboard input handling between the VS Code extension and the terminal CLI to identify the root cause.
  • Check the code for any platform-specific input handling for Windows and modify it to correctly handle the Enter key press.
  • Consider adding a temporary workaround to allow users to submit prompts using an alternative method, such as Ctrl+Enter.
  • Review the changes made between the last working version and the current version (2.1.116) to identify any regressions related to keyboard input handling.

Example

No code snippet can be provided without more information about the Claude Code CLI's internal implementation.

Notes

The issue seems to be specific to the Windows platform and the terminal CLI, and it may be related to how the CLI handles keyboard input. The fact that the VS Code extension works correctly suggests that the issue is not with the Anthropic API or the Claude model, but rather with the local input handling.

Recommendation

Apply a workaround, such as using the VS Code extension or modifying the keyboard input handling in the terminal CLI, until a permanent fix can be implemented. This is because the issue is a regression and the last working version is not specified, making it difficult to determine the exact cause and implement a permanent fix.

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…

FAQ

Expected behavior

Pressing Enter submits the prompt and Claude responds.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Enter key does not submit prompt in Claude Code CLI on Windows 11 [1 comments, 2 participants]