From 6ffffc38a0f178ec1837d1428cf262aeb468c18b Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Thu, 16 Apr 2026 19:51:00 +0700 Subject: [PATCH] fix(app): update route test expectations for b64_ workspace ID prefix The opaque-workspace-identifier refactor (e6044264) added a `b64_` prefix to base64-encoded workspace IDs in route builders. Two app tests still expected the unprefixed form and failed in CI. --- packages/app/src/utils/new-agent-routing.test.ts | 2 +- packages/app/src/utils/workspace-navigation.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/src/utils/new-agent-routing.test.ts b/packages/app/src/utils/new-agent-routing.test.ts index cf55d7099..998beacd0 100644 --- a/packages/app/src/utils/new-agent-routing.test.ts +++ b/packages/app/src/utils/new-agent-routing.test.ts @@ -16,7 +16,7 @@ describe("buildNewAgentRoute", () => { it("encodes the working directory as a workspace path segment", () => { expect(buildNewAgentRoute("srv-1", "/Users/me/dev/paseo")).toBe( - "/h/srv-1/workspace/L1VzZXJzL21lL2Rldi9wYXNlbw", + "/h/srv-1/workspace/b64_L1VzZXJzL21lL2Rldi9wYXNlbw", ); }); }); diff --git a/packages/app/src/utils/workspace-navigation.test.ts b/packages/app/src/utils/workspace-navigation.test.ts index d170554c5..00cb78169 100644 --- a/packages/app/src/utils/workspace-navigation.test.ts +++ b/packages/app/src/utils/workspace-navigation.test.ts @@ -46,7 +46,7 @@ describe("prepareWorkspaceTab", () => { target: { kind: "agent", agentId: AGENT_ID }, }); - expect(route).toBe("/h/server-1/workspace/L3JlcG8vd29ya3RyZWU"); + expect(route).toBe("/h/server-1/workspace/b64_L3JlcG8vd29ya3RyZWU"); const key = "server-1:/repo/worktree"; expect(useWorkspaceLayoutStore.getState().getWorkspaceTabs(key)).toHaveLength(1); });