AskUserQuestion dialog auto-submits on mouse click without confirmation
Description
When an AskUserQuestion dialog is shown, a single mouse click on one of the options immediately submits that option as the answer, without requiring the user to press Enter or click a separate confirm button.
The user did not intend to confirm — they only clicked into/onto the option (e.g. to focus or read it) and the answer was sent automatically.
Steps to reproduce
- Run Claude Code in a JetBrains integrated terminal.
- Have the assistant invoke
AskUserQuestionwith a Yes/No (or any) set of options. - Click on one of the options with the mouse (do NOT press Enter).
Expected behavior
Clicking an option should focus/select it. Submission should require an explicit confirmation (Enter, or a separate Submit button/click).
Actual behavior
A single mouse click on an option immediately submits it as the final answer.
Environment
- Claude Code version: 2.1.193
- OS: Linux 6.8.0-124-generic (Ubuntu)
- Terminal: JetBrains integrated terminal
Notes
Reproduced live in a session: the assistant asked a Yes/No test question, the user clicked once with the mouse (no Enter press), and "Yes" was submitted immediately.
This issue has 9 comments on GitHub. Read the full discussion on GitHub ↗