From 69d9dc8bc1d6892c274b71e25afb3c713eed0e46 Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 4 Apr 2026 21:15:04 +0000 Subject: [PATCH] huskies: create 483_bug_timer_slash_command_not_wired_up_in_web_ui --- ...ions_from_project_toml_into_agents_toml.md | 26 ----------------- ...er_slash_command_not_wired_up_in_web_ui.md | 29 +++++++++++++++++++ 2 files changed, 29 insertions(+), 26 deletions(-) delete mode 100644 .huskies/work/1_backlog/482_refactor_split_agent_definitions_from_project_toml_into_agents_toml.md create mode 100644 .huskies/work/1_backlog/483_bug_timer_slash_command_not_wired_up_in_web_ui.md diff --git a/.huskies/work/1_backlog/482_refactor_split_agent_definitions_from_project_toml_into_agents_toml.md b/.huskies/work/1_backlog/482_refactor_split_agent_definitions_from_project_toml_into_agents_toml.md deleted file mode 100644 index 586d9105..00000000 --- a/.huskies/work/1_backlog/482_refactor_split_agent_definitions_from_project_toml_into_agents_toml.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -name: "Split agent definitions from project.toml into agents.toml" ---- - -# Refactor 482: Split agent definitions from project.toml into agents.toml - -## Current State - -- TBD - -## Desired State - -Move all `[[agent]]` blocks from `.huskies/project.toml` into a separate `.huskies/agents.toml`. The server loads agents from agents.toml and merges with project.toml config. Falls back to inline `[[agent]]` blocks in project.toml for backwards compatibility. The watcher should detect changes to agents.toml and hot-reload. This is a prerequisite for bug 481 (scaffold copies default agents to new projects) — agents.toml becomes the embeddable template. - -## Acceptance Criteria - -- [ ] All [[agent]] blocks moved from .huskies/project.toml to .huskies/agents.toml -- [ ] Server loads agent config from agents.toml, falls back to inline [[agent]] in project.toml for backwards compat -- [ ] Watcher detects agents.toml changes and triggers hot-reload -- [ ] project.toml is significantly smaller (only project settings remain) -- [ ] agents.toml is the canonical default template for scaffolding (prerequisite for bug 481) -- [ ] All existing agent functionality unchanged - -## Out of Scope - -- TBD diff --git a/.huskies/work/1_backlog/483_bug_timer_slash_command_not_wired_up_in_web_ui.md b/.huskies/work/1_backlog/483_bug_timer_slash_command_not_wired_up_in_web_ui.md new file mode 100644 index 00000000..4c01e9f6 --- /dev/null +++ b/.huskies/work/1_backlog/483_bug_timer_slash_command_not_wired_up_in_web_ui.md @@ -0,0 +1,29 @@ +--- +name: "Timer slash command not wired up in web UI" +--- + +# Bug 483: Timer slash command not wired up in web UI + +## Description + +The `/timer` command in the web UI returns "Unknown command" because `bot_command.rs` dispatch_command only has explicit async handlers for `assign`, `start`, `delete`, and `rebuild`. The `timer` command is async (handled by the Matrix transport's message loop) but has no corresponding handler in the web UI's bot command endpoint. It falls through to `dispatch_sync` which calls `try_handle_command`, but the timer registry stub returns `None`. + +The fix: add a `"timer" => dispatch_timer(args, project_root).await` branch to `dispatch_command` in `bot_command.rs`, similar to the existing `dispatch_start` and `dispatch_delete` handlers. + +## How to Reproduce + +1. Open the web UI +2. Type `/timer list` or `/timer 463 14:00` +3. See "Unknown command: /timer" + +## Actual Result + +Unknown command: `/timer`. Type `/help` to see available commands. + +## Expected Result + +Timer command works in the web UI the same as it does via Matrix. + +## Acceptance Criteria + +- [ ] Bug is fixed and verified