Skip to content

Commit b8a3f6e

Browse files
committed
test(server): thread read reports pinned
1 parent 85028f1 commit b8a3f6e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/server/src/mcp/OrchestratorMcpService.activity.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,10 @@ it("readThread preserves caller access errors and prefers activity-run status ov
164164
? Effect.die("A failed caller read must not reach the target")
165165
: Effect.succeed(
166166
threadId === parentThreadId
167-
? (projection.thread as unknown as OrchestrationV2ThreadShell)
167+
? ({
168+
...projection.thread,
169+
pinnedAt: now,
170+
} as unknown as OrchestrationV2ThreadShell)
168171
: null,
169172
),
170173
getProjectThreadRecords: (input) =>
@@ -196,6 +199,7 @@ it("readThread preserves caller access errors and prefers activity-run status ov
196199
expect(result.thread.status).toBe("running");
197200
expect(result.thread.latestRunId).toBe(cancelledRunId);
198201
expect(result.thread.activeRunId).toBe(activeRunId);
202+
expect(result.thread.pinned).toBe(true);
199203

200204
callerUnavailable = true;
201205
const denied = yield* service

0 commit comments

Comments
 (0)