Log bugs 2 and 3: agent panel expand and stale worktree issues

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dave
2026-02-20 12:47:01 +00:00
parent 1064b50f86
commit 1cd1d318d3
2 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
---
name: Agent panel expand triangle does nothing without running agent
---
# Bug 2: Agent Panel Expand Triangle Does Nothing
## Symptom
Clicking the expand triangle (▶) next to a story in the Agent panel does nothing visible. No detail panel opens, no console output.
## Root Cause
The expand handler sets `expandedKey` to `storyAgentEntries[0]?.[0] ?? story.story_id`. If no agents have been started for the story, `storyAgentEntries` is empty, so `expandedKey` gets set to `story.story_id`. But the detail section only renders entries from `storyAgentEntries.map(...)`, which is empty — so nothing renders even though `expandedKey` is set.
## Reproduction Steps
1. Start the server and open the web UI
2. Ensure there are upcoming stories visible in the Agent panel
3. Click the ▶ triangle next to any story (without starting an agent first)
4. Observe: nothing happens
## Proposed Fix
Either disable the expand triangle when no agents exist for the story, or show a "No agent running" message in the detail panel when expanded without agents.