mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-17 12:44:56 +01:00
Keep retry workspace fixture source IDs mutable
Match the ContinuationReadiness contract when passing the fixture directly. Validated the complete server layered typecheck, including all test-tree layers. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 file changed
+1
-1
@@ -87,7 +87,7 @@ const support = await getEmbeddedPostgresTestSupport();
|
|||||||
const [retry] = await db.insert(heartbeatRuns).values({ companyId: f.companyId, agentId: f.input.agentId,
|
const [retry] = await db.insert(heartbeatRuns).values({ companyId: f.companyId, agentId: f.input.agentId,
|
||||||
issueId: f.issueId, status: "running", contextSnapshot: { taskRetryRequestId: retryIntentId },
|
issueId: f.issueId, status: "running", contextSnapshot: { taskRetryRequestId: retryIntentId },
|
||||||
}).returning();
|
}).returning();
|
||||||
const fresh = { mode: "fresh_isolated_workspace", retryIntentId, sourceRunId: f.runId, retainedSourceIds: [] } as const;
|
const fresh = { mode: "fresh_isolated_workspace" as const, retryIntentId, sourceRunId: f.runId, retainedSourceIds: [] };
|
||||||
const call = vi.fn<WorkspaceWorkers["call"]>(async (...args) => {
|
const call = vi.fn<WorkspaceWorkers["call"]>(async (...args) => {
|
||||||
const result = await f.workers.call(...args) as { kind: string };
|
const result = await f.workers.call(...args) as { kind: string };
|
||||||
if (state === "transport") throw new Error("connection closed");
|
if (state === "transport") throw new Error("connection closed");
|
||||||
|
|||||||
Reference in new issue
Block a user