diff --git a/apps/web/app/workspace/workspace-switch.test.ts b/apps/web/app/workspace/workspace-switch.test.ts index 4de741f2946..84583266fd4 100644 --- a/apps/web/app/workspace/workspace-switch.test.ts +++ b/apps/web/app/workspace/workspace-switch.test.ts @@ -12,7 +12,7 @@ describe("resetWorkspaceStateOnSwitch", () => { setActiveSessionId: vi.fn(), setActiveSubagentKey: vi.fn(), resetMainChat: vi.fn(), - replaceUrlToWorkspace: vi.fn(), + replaceUrlToRoot: vi.fn(), reconnectWorkspaceWatcher: vi.fn(), refreshSessions: vi.fn(), refreshContext: vi.fn(), @@ -28,7 +28,7 @@ describe("resetWorkspaceStateOnSwitch", () => { expect(deps.setActiveSessionId).toHaveBeenCalledWith(null); expect(deps.setActiveSubagentKey).toHaveBeenCalledWith(null); expect(deps.resetMainChat).toHaveBeenCalledTimes(1); - expect(deps.replaceUrlToWorkspace).toHaveBeenCalledTimes(1); + expect(deps.replaceUrlToRoot).toHaveBeenCalledTimes(1); expect(deps.reconnectWorkspaceWatcher).toHaveBeenCalledTimes(1); expect(deps.refreshSessions).toHaveBeenCalledTimes(1); expect(deps.refreshContext).toHaveBeenCalledTimes(1); diff --git a/apps/web/app/workspace/workspace-switch.ts b/apps/web/app/workspace/workspace-switch.ts index e61cbb7bd0d..a45a2f56489 100644 --- a/apps/web/app/workspace/workspace-switch.ts +++ b/apps/web/app/workspace/workspace-switch.ts @@ -9,7 +9,7 @@ type WorkspaceSwitchDeps = { setActiveSessionId: (sessionId: string | null) => void; setActiveSubagentKey: (sessionKey: string | null) => void; resetMainChat: () => void; - replaceUrlToWorkspace: () => void; + replaceUrlToRoot: () => void; reconnectWorkspaceWatcher: () => void; refreshSessions: () => void; refreshContext: () => void; @@ -29,7 +29,7 @@ export function resetWorkspaceStateOnSwitch(deps: WorkspaceSwitchDeps): void { deps.setActiveSessionId(null); deps.setActiveSubagentKey(null); deps.resetMainChat(); - deps.replaceUrlToWorkspace(); + deps.replaceUrlToRoot(); deps.reconnectWorkspaceWatcher(); deps.refreshSessions(); deps.refreshContext();