[BUG] Action confirmation prompt requires more than keypress to be dismissed
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?
Not sure if this only happens in the "yes" answer, to give permission to run or do something, but after pressing the option, the confirmation prompt stays open, and it seems time keeps passing, and I need to press one more times to really close the prompt and see it doing something. And afterwards, shows the answers multiple times (the times I needed to press).
⏺ That sounds like a known UI glitch — the prompt captures the keypress but doesn't dismiss until a second input event arrives, and the duplicate entries are the repeated keypresses being rendered. It's a terminal input handling race condition in the prompt library.
Claude Code v2.1.140
OS: macOS 26.4.1 (25E253)
Terminal emulator: iTerm2 Build 3.6.10
What Should Happen?
The confirmation prompt close on first keypress.
Error Messages/Logs
Steps to Reproduce
Not sure if happened with other commands, but the last 2 times that happened was requesting information from JIRA tasks using the MCP tool Atlassian/Jira.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
v2.1.139
Claude Code Version
v2.1.140
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗