From bbe3f173275fe9ba6cf78c9695939003fa57b39c Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Tue, 25 Aug 2026 13:50:54 +0200 Subject: [PATCH] test(app): follow Explorer subagent placement --- .../src/stores/workspace-subagents-integration.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/app/src/stores/workspace-subagents-integration.test.ts b/packages/app/src/stores/workspace-subagents-integration.test.ts index 2024f43d92..29925efd42 100644 --- a/packages/app/src/stores/workspace-subagents-integration.test.ts +++ b/packages/app/src/stores/workspace-subagents-integration.test.ts @@ -258,7 +258,7 @@ describe("workspace subagents integration", () => { ).toEqual([child.id]); }); - it("falls back to the main pane when the Explorer is preferred for a subagent", () => { + it("opens a subagent in Explorer when Explorer is preferred", () => { const workspaceKey = buildWorkspaceTabPersistenceKey({ serverId: SERVER_ID, workspaceId: WORKSPACE_ID, @@ -293,12 +293,12 @@ describe("workspace subagents integration", () => { const explorerSidebarPaneId = state.explorerSidebarPaneIdByWorkspace[workspaceKey!]; expect(explorerSidebarPaneId).toBeTruthy(); - expect(findPaneContainingTab(layout.root, tabId!)?.id).toBe("main"); + expect(findPaneContainingTab(layout.root, tabId!)?.id).toBe(explorerSidebarPaneId); expect(findPaneById(layout.root, explorerSidebarPaneId!)?.hidden).toBeUndefined(); expect(layout.focusedPaneId).toBe("main"); }); - it("falls back to the main pane when the Explorer is preferred for a provider subagent", () => { + it("opens a provider subagent in Explorer when Explorer is preferred", () => { const workspaceKey = buildWorkspaceTabPersistenceKey({ serverId: SERVER_ID, workspaceId: WORKSPACE_ID, @@ -320,7 +320,7 @@ describe("workspace subagents integration", () => { const explorerSidebarPaneId = state.explorerSidebarPaneIdByWorkspace[workspaceKey!]; expect(explorerSidebarPaneId).toBeTruthy(); - expect(findPaneContainingTab(layout.root, tabId!)?.id).toBe("main"); + expect(findPaneContainingTab(layout.root, tabId!)?.id).toBe(explorerSidebarPaneId); expect(findPaneById(layout.root, explorerSidebarPaneId!)?.hidden).toBeUndefined(); expect(layout.focusedPaneId).toBe("main"); });