From 1eae2410f39f26f1e973b473723b92ca99466d1c Mon Sep 17 00:00:00 2001 From: Dave Date: Fri, 20 Feb 2026 13:17:20 +0000 Subject: [PATCH] Fix bugs 2 and 3: agent panel expand and stale worktree references Bug 2: Expand triangle now works when no agents are started - shows "No agents started" message. AgentPanel moved to top of panels. Bug 3: Run `git worktree prune` before `git worktree add` to clean stale references from externally-deleted worktree directories. Co-Authored-By: Claude Opus 4.6 --- frontend/src/components/AgentPanel.tsx | 39 ++++++++++++++---- frontend/src/components/Chat.tsx | 7 +++- server/src/worktree.rs | 57 ++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/AgentPanel.tsx b/frontend/src/components/AgentPanel.tsx index e60ca39..f99647b 100644 --- a/frontend/src/components/AgentPanel.tsx +++ b/frontend/src/components/AgentPanel.tsx @@ -471,17 +471,23 @@ export function AgentPanel({ stories }: AgentPanelProps) { >