From bde961abcfea3df47c25a5ab8fcbe0fb57bb08e5 Mon Sep 17 00:00:00 2001 From: "shumeiko.it" Date: Sat, 24 Oct 2026 13:22:27 +0200 Subject: [PATCH] test(web): use string memory ids in the Room fixtures (P1.5) Memory ids from the memory contract are strings; the Room tests still built memory refs with numeric frame ids and failed the app typecheck. --- apps/web/src/components/os/apps/RoomApp.test.tsx | 4 ++-- apps/web/src/lib/room-state-reducer.test.ts | 2 +- apps/web/src/test/p7-b2-room-state.test.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/web/src/components/os/apps/RoomApp.test.tsx b/apps/web/src/components/os/apps/RoomApp.test.tsx index 94018db..452ec40 100644 --- a/apps/web/src/components/os/apps/RoomApp.test.tsx +++ b/apps/web/src/components/os/apps/RoomApp.test.tsx @@ -117,8 +117,8 @@ function canonicalWorker(over: Partial = {}): Collaborat metrics: { toolsUsed: ['read_file'], inputTokens: 10, outputTokens: 20, costUsd: 0.01 }, memoryRefs: { status: 'partial', - personalFrameIds: [11], - workspaceFrameIds: { ws1: [21, 22] }, + personalFrameIds: ['mem-11'], + workspaceFrameIds: { ws1: ['mem-21', 'mem-22'] }, }, capabilities: { cancel: true, pause: false, resume: true, message: true }, revision: 1, diff --git a/apps/web/src/lib/room-state-reducer.test.ts b/apps/web/src/lib/room-state-reducer.test.ts index 8496a02..e0f751d 100644 --- a/apps/web/src/lib/room-state-reducer.test.ts +++ b/apps/web/src/lib/room-state-reducer.test.ts @@ -244,7 +244,7 @@ describe('durable collaboration runs', () => { revision: 2, completedAt: new Date(NOW + 1_000).toISOString(), result: { summary: 'Finished' }, - memoryRefs: { status: 'complete' as const, personalFrameIds: [1], workspaceFrameIds: { ws1: [2] } }, + memoryRefs: { status: 'complete' as const, personalFrameIds: ['mem-1'], workspaceFrameIds: { ws1: ['mem-2'] } }, }; const next = applyRunEvent(hydrated, { seq: 10, type: 'upsert', run: completed, timestamp: new Date(NOW + 1_000).toISOString(), diff --git a/apps/web/src/test/p7-b2-room-state.test.ts b/apps/web/src/test/p7-b2-room-state.test.ts index f353bb2..e6b5d50 100644 --- a/apps/web/src/test/p7-b2-room-state.test.ts +++ b/apps/web/src/test/p7-b2-room-state.test.ts @@ -99,8 +99,8 @@ function worker( metrics: { toolsUsed: ['read_file'], inputTokens: 10, outputTokens: 20, costUsd: 0.01 }, memoryRefs: { status: 'partial', - personalFrameIds: [1], - workspaceFrameIds: { [workspaceId]: [2] }, + personalFrameIds: ['mem-1'], + workspaceFrameIds: { [workspaceId]: ['mem-2'] }, }, capabilities: { cancel: true, pause: true, resume: true, message: false }, revision: 1,