Skip to content

[BUG] Unable to submit (Enter key unresponsive) when providing a custom reason for "No" in file creation prompt #18470

Description

@Yuerchu

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?

When prompted "Do you want to create [filename]?", if I select option 3. No and type a reason/instruction, pressing the Enter key does nothing. The input is not submitted, and the interface remains stuck on the edit line.

I am unable to proceed with the conversation using the provided reason. The only way to exit this state is to press Esc, which cancels the entire operation and forces me to start over.

Image

What Should Happen?

After typing the reason for declining the file creation (Option 3) and pressing Enter, Claude Code should accept the input, process the feedback, and continue the session without freezing.

Error Messages/Logs

No error message is displayed. The UI simply becomes unresponsive to the Enter key.

Steps to Reproduce

  1. Run a command that triggers a file creation proposal (e.g., asking Claude to write a C++ file).
  2. When the prompt Do you want to create [filename]? appears, use the arrow keys or type 3 to select the "No" option.
  3. Type a reason or instruction (e.g., "Don't use this, use a different method").
  4. Press Enter.
  5. Observe that the input is not accepted and the terminal does not advance.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.9

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:tuibugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on WindowsstaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions