story-kit: create 275_story_matrix_bot_surfaces_claude_code_permission_prompts_to_chat
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
---
|
||||
name: "Matrix bot surfaces Claude Code permission prompts to chat"
|
||||
---
|
||||
|
||||
# Story 275: Matrix bot surfaces Claude Code permission prompts to chat
|
||||
|
||||
## User Story
|
||||
|
||||
As a user chatting with the Matrix bot, I want to see permission prompts from Claude Code in the chat and be able to approve or deny them, so that headless Claude Code sessions don't silently hang when they need authorization to proceed.
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- [ ] When Claude Code hits a permission prompt during a bot-initiated session, the bot sends the prompt text to the Matrix room as a message
|
||||
- [ ] The user can approve or deny the permission by replying in chat (e.g. yes/no or a reaction)
|
||||
- [ ] The bot relays the user decision back to the Claude Code subprocess so execution continues
|
||||
- [ ] If the user does not respond within a configurable timeout, the permission is denied (fail-closed)
|
||||
- [ ] The bot does not hang or timeout silently when a permission prompt is pending - the user always sees what is happening
|
||||
|
||||
## Out of Scope
|
||||
|
||||
- TBD
|
||||
Reference in New Issue
Block a user