From d84399aebe157d5b929923d19b7a5016241c8147 Mon Sep 17 00:00:00 2001 From: dotta Date: Wed, 18 Mar 2026 12:58:33 -0500 Subject: [PATCH] Preserve any agent tab when switching agents in sidebar Remove hardcoded validTabs set and pass through whatever tab segment is in the current URL. This makes tab preservation work for all current and future agent tabs. Co-Authored-By: Paperclip --- ui/src/components/SidebarAgents.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/src/components/SidebarAgents.tsx b/ui/src/components/SidebarAgents.tsx index 4931eea7..0a7e8c18 100644 --- a/ui/src/components/SidebarAgents.tsx +++ b/ui/src/components/SidebarAgents.tsx @@ -78,8 +78,6 @@ export function SidebarAgents() { const activeAgentId = agentMatch?.[1] ?? null; const activeTab = agentMatch?.[2] ?? null; - // Valid agent detail tabs — preserve across agent switches - const validTabs = new Set(["dashboard", "instructions", "prompts", "skills", "configuration", "configure", "budget", "runs"]); return ( @@ -116,7 +114,7 @@ export function SidebarAgents() { return ( { if (isMobile) setSidebarOpen(false); }}