[BUG] AskUserQuestion select list: Return key intermittently fails to select focused option
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?
Version: 2.1.32
not model-specific
Description:
When using the AskUserQuestion tool
with a select list, pressing
Return/Enter to select the focused
option works intermittently — it
functions correctly in some sessions
but fails in others within the same
project. When it fails, the focused
option does not get selected on
keypress and requires mouse click
instead.
Expected behavior: Return key
consistently selects the currently
focused option in the
AskUserQuestion select list.
Actual behavior: Return key
selection works in some sessions but
silently stops working in others.
No error output. Mouse click still
works as a workaround.
Environment:
- macOS (Darwin 24.6.0)
- Claude Code (include version from
claude --version)
- Trigger: Stop hook presenting
AskUserQuestion via systemMessage
What Should Happen?
Pressing Return/Enter on a focused
option in the AskUserQuestion select
list should always select it.
Currently it works intermittently —
sometimes Return registers the
selection, sometimes it doesn't,
with no change in setup between
sessions.
Error Messages/Logs
Steps to Reproduce
Steps to reproduce:
- Have a hook (e.g., Stop hook)
that outputs a systemMessage
instructing Claude to call
AskUserQuestion with options
- Claude presents the select list
via AskUserQuestion
- Press Return to select the
focused option
- Sometimes it registers, sometimes
it doesn't
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.32
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
Thanks for the help
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗