Add instructions tab to sidebar tab preservation list

The agent instructions tab was renamed from "prompts" to "instructions"
in 6b355e1, but the sidebar valid tabs set was not updated to include
the new name, causing tab preservation to fall back to dashboard.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
dotta
2026-03-18 07:08:19 -05:00
parent 6b355e1acf
commit c7d31346e0

View File

@@ -79,7 +79,7 @@ export function SidebarAgents() {
const activeTab = agentMatch?.[2] ?? null;
// Valid agent detail tabs — preserve across agent switches
const validTabs = new Set(["dashboard", "prompts", "skills", "configuration", "configure", "budget", "runs"]);
const validTabs = new Set(["dashboard", "instructions", "prompts", "skills", "configuration", "configure", "budget", "runs"]);
return (
<Collapsible open={open} onOpenChange={setOpen}>