[BUG] confirmation prompts preempt enter key for sending additional text
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 trying to send another input as Claude Code is working, if a confirmation prompt pops up as I'm hitting enter, the confirmation gets confirmed instead of the text being sent. This potentially leads to inadvertent confirmation of items that haven't been reviewed rather than the expected behavior of sending the input and then dealing with the confirmation.
What Should Happen?
If there is any text in the input box, hitting enter should send the text rather than interacting with the confirmation prompt.
Error Messages/Logs
Steps to Reproduce
- Instruct Claude to do something that will require a confirmation
- Enter some text in the input box
- Wait for Claude to ask for a confirmation
- Hit enter
This is a bit contrived - in the worst case Claude displays the prompt as the user is hitting enter to send additional text and it's "swallowed" by the confirmation.
Claude Model
_No response_
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.185
Platform
AWS Bedrock
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_