From 23ffec50723613e64cad8e588302c41018f2d5b7 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Fri, 3 Apr 2026 19:02:18 +0700 Subject: [PATCH] fix(app): prevent tab pruning from closing pinned archived agents The tab sync effect pruned archived agent tabs without checking if they were pinned, so clicking an archived agent from the sessions page would open and immediately close the tab. --- packages/app/src/screens/workspace/workspace-screen.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/app/src/screens/workspace/workspace-screen.tsx b/packages/app/src/screens/workspace/workspace-screen.tsx index 3e5722964..e9b402145 100644 --- a/packages/app/src/screens/workspace/workspace-screen.tsx +++ b/packages/app/src/screens/workspace/workspace-screen.tsx @@ -983,6 +983,7 @@ function WorkspaceScreenContent({ serverId, workspaceId }: WorkspaceScreenProps) if ( canPruneAgentTabs && tab.target.kind === "agent" && + !pinnedAgentIds.has(tab.target.agentId) && shouldPruneWorkspaceAgentTab({ agentId: tab.target.agentId, agentsHydrated: hasHydratedAgents,