feat: add AskUserQuestion tool support #60

Merged
naomi merged 2 commits from feat/ask into main 2026-01-23 14:11:18 -08:00

2 Commits

Author SHA1 Message Date
hikari dafd1b4100 fix: lint and format issues in UserQuestionModal
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 56s
CI / Lint & Test (pull_request) Successful in 14m20s
CI / Build Linux (pull_request) Successful in 16m47s
CI / Build Windows (cross-compile) (pull_request) Successful in 27m20s
2026-01-23 13:12:54 -08:00
hikari fd80864bf1 feat: add AskUserQuestion tool support
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 54s
CI / Lint & Test (pull_request) Failing after 5m33s
CI / Build Linux (pull_request) Has been skipped
CI / Build Windows (cross-compile) (pull_request) Has been skipped
Implements support for Claude's AskUserQuestion tool, allowing Claude to ask
the user questions with multiple choice options during a conversation.

- Add UserQuestionEvent and QuestionOption types (Rust and TypeScript)
- Detect AskUserQuestion in permission denials and emit claude:question event
- Create UserQuestionModal component with option selection and custom answer
- Use stop/reconnect approach (same as PermissionModal) since Claude API
  doesn't accept tool_result for permission-denied tools
- Add pendingQuestion to conversation store and hasQuestionPending derived store

Closes #51
2026-01-23 12:56:06 -08:00