From 9f18cacbedeb4367c0572f076b3cd3a3412ed10f Mon Sep 17 00:00:00 2001 From: Dave Date: Fri, 20 Mar 2026 11:03:07 +0000 Subject: [PATCH] story-kit: create 352_bug_ambient_on_off_command_not_intercepted_by_bot_after_refactors --- ..._not_intercepted_by_bot_after_refactors.md | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .story_kit/work/1_backlog/352_bug_ambient_on_off_command_not_intercepted_by_bot_after_refactors.md diff --git a/.story_kit/work/1_backlog/352_bug_ambient_on_off_command_not_intercepted_by_bot_after_refactors.md b/.story_kit/work/1_backlog/352_bug_ambient_on_off_command_not_intercepted_by_bot_after_refactors.md new file mode 100644 index 0000000..18c5ba4 --- /dev/null +++ b/.story_kit/work/1_backlog/352_bug_ambient_on_off_command_not_intercepted_by_bot_after_refactors.md @@ -0,0 +1,30 @@ +--- +name: "Ambient on/off command not intercepted by bot after refactors" +--- + +# Bug 352: Ambient on/off command not intercepted by bot after refactors + +## Description + +The ambient on/off bot command stopped being intercepted by the bot after the recent refactors (328 split commands.rs into modules, 330 consolidated chat transports into chat/ module). Messages like "timmy ambient off", "ambient off", and "ambient on" are being forwarded to the LLM instead of being handled at the bot level. The ambient toggle was previously handled in bot.rs before the command registry dispatch — it may not have been properly wired up after the code was moved to the chat/ module structure. + +## How to Reproduce + +1. Type "timmy ambient off" in a Matrix room where ambient mode is on +2. Observe that the message is forwarded to Claude instead of being intercepted +3. Same for "timmy ambient on", "ambient off", "ambient on" + +## Actual Result + +Ambient toggle commands are forwarded to the LLM as regular messages. + +## Expected Result + +Ambient toggle commands should be intercepted at the bot level and toggle ambient mode without invoking the LLM, with a confirmation message sent directly. + +## Acceptance Criteria + +- [ ] 'timmy ambient on' toggles ambient mode on and sends confirmation without LLM invocation +- [ ] 'timmy ambient off' toggles ambient mode off and sends confirmation without LLM invocation +- [ ] Ambient toggle works after refactors 328 and 330 +- [ ] Ambient state persists in bot.toml as before