huskies: create 483_bug_timer_slash_command_not_wired_up_in_web_ui

This commit is contained in:
dave
2026-04-04 21:15:04 +00:00
parent abd5c6381a
commit 69d9dc8bc1
2 changed files with 29 additions and 26 deletions
@@ -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
@@ -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