fix: resolve merge conflicts in client.ts and Chat.tsx
Keep both reconciliation_progress (from master) and agent_config_changed (from story-115) features in the WebSocket client and Chat component. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
---
|
||||
name: "Hot-reload project.toml agent config without server restart"
|
||||
---
|
||||
|
||||
# Story 115: Hot-reload project.toml agent config without server restart
|
||||
|
||||
## User Story
|
||||
|
||||
As a developer, I want changes to `.story_kit/project.toml` to be picked up automatically by the running server, so that I can update the agent roster without restarting the server.
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- [ ] When `.story_kit/project.toml` is saved on disk, the server detects the change within the debounce window (300 ms) and broadcasts an `agent_config_changed` WebSocket event to all connected clients
|
||||
- [ ] The frontend `AgentPanel` automatically re-fetches and displays the updated agent roster upon receiving `agent_config_changed`, without any manual action
|
||||
- [ ] `project.toml` changes inside worktree directories (paths containing `worktrees/`) are NOT broadcast
|
||||
- [ ] Config file changes do NOT trigger a pipeline state refresh (only work-item events do)
|
||||
- [ ] A helper `is_config_file(path, git_root)` correctly identifies the root-level `.story_kit/project.toml` (returns false for worktree copies)
|
||||
|
||||
## Out of Scope
|
||||
|
||||
- Watching for newly created `project.toml` (only file modification events)
|
||||
- Validating the new config before broadcasting (parse errors are surfaced on next `get_agent_config` call)
|
||||
- Reloading config into in-memory agent state (agents already read config from disk on each start)
|
||||
Reference in New Issue
Block a user