From b22e2b9274acd2b8399ab35884b4e97dc2628520 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 26 Mar 2026 20:51:54 +0000 Subject: [PATCH] storkit: done 401_bug_whatsapp_and_slack_missing_start_command_handler --- ...and_slack_missing_start_command_handler.md | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .storkit/work/5_done/401_bug_whatsapp_and_slack_missing_start_command_handler.md diff --git a/.storkit/work/5_done/401_bug_whatsapp_and_slack_missing_start_command_handler.md b/.storkit/work/5_done/401_bug_whatsapp_and_slack_missing_start_command_handler.md new file mode 100644 index 00000000..0b09f2c0 --- /dev/null +++ b/.storkit/work/5_done/401_bug_whatsapp_and_slack_missing_start_command_handler.md @@ -0,0 +1,35 @@ +--- +name: "WhatsApp and Slack missing start command handler" +--- + +# Bug 401: WhatsApp and Slack missing start command handler + +## Description + +The start command has a fallback handler in chat/commands/mod.rs that returns None. Only Matrix has pre-dispatch handling for this command. On WhatsApp and Slack, the command falls through to the LLM path. + +## Implementation Note + +Follow the **rebuild pattern** established in story 402. + +- `extract_start_command` and `handle_start` already exist in `server/src/chat/transport/matrix/start.rs` +- Add an async intercept in `server/src/chat/transport/whatsapp.rs` (see rebuild intercept ~line 1107) and `server/src/chat/transport/slack.rs` (see rebuild intercept ~line 845) +- Call `crate::chat::transport::matrix::start::extract_start_command` to detect the command, then `crate::chat::transport::matrix::start::handle_start` to execute it +- The fallback handler in `chat/commands/mod.rs` (`handle_start_fallback`) stays as-is — it exists only so `help` lists the command + +## How to Reproduce + +1. Configure bot with transport = "whatsapp" or "slack"\n2. Send "start " to the bot\n3. Check server logs + +## Actual Result + +Command falls through to LLM instead of starting an agent. + +## Expected Result + +The bot starts an agent for the specified story and replies with confirmation. + +## Acceptance Criteria + +- [ ] WhatsApp transport handles start command: starts agent and replies with confirmation +- [ ] Slack transport handles start command: starts agent and replies with confirmation