From 0b39b2acfc9864c229e0cee3b523f7d2f18c31e0 Mon Sep 17 00:00:00 2001 From: Dave Date: Tue, 17 Mar 2026 18:21:40 +0000 Subject: [PATCH] story-kit: create 275_story_matrix_bot_surfaces_claude_code_permission_prompts_to_chat --- ..._claude_code_permission_prompts_to_chat.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .story_kit/work/1_upcoming/275_story_matrix_bot_surfaces_claude_code_permission_prompts_to_chat.md diff --git a/.story_kit/work/1_upcoming/275_story_matrix_bot_surfaces_claude_code_permission_prompts_to_chat.md b/.story_kit/work/1_upcoming/275_story_matrix_bot_surfaces_claude_code_permission_prompts_to_chat.md new file mode 100644 index 0000000..3ad73ec --- /dev/null +++ b/.story_kit/work/1_upcoming/275_story_matrix_bot_surfaces_claude_code_permission_prompts_to_chat.md @@ -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