[BUG] Unable to submit (Enter key unresponsive) when providing a custom reason for "No" in file creation prompt
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?
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.
<img width="1126" height="250" alt="Image" src="https://github.com/user-attachments/assets/ed5fce22-72ef-45e5-9926-288dc8a62281" />
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
- Run a command that triggers a file creation proposal (e.g., asking Claude to write a C++ file).
- When the prompt
Do you want to create [filename]?appears, use the arrow keys or type3to select the "No" option. - Type a reason or instruction (e.g., "Don't use this, use a different method").
- Press
Enter. - 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_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗