fix(orchestration): handle checkpoint-wait runs
Allow merge-back from provider-finished runs awaiting checkpoint capture while keeping waiting runs visible but non-interruptible in mobile. Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
091a76003e
commit
6ab4ce9fe3
8 files changed
+238
-14
No files matched your search
@@ -68,4 +68,21 @@ describe("thread execution presentation", () => {
|
||||
});
|
||||
expect(threadRuntimeHasInterruptibleRun(runtime)).toBe(false);
|
||||
});
|
||||
|
||||
it("keeps checkpoint-wait activity visible without exposing a non-functional interrupt", () => {
|
||||
const waitingRun = run("run-waiting", 1, "waiting");
|
||||
const projection = { ...v2Projection, runs: [waitingRun], updatedAt: now };
|
||||
|
||||
expect(deriveThreadActivityRun(projection)).toMatchObject({
|
||||
runId: waitingRun.id,
|
||||
status: "waiting",
|
||||
});
|
||||
|
||||
const runtime = deriveThreadRuntime(projection);
|
||||
expect(runtime).toMatchObject({
|
||||
status: "waiting",
|
||||
activeRunId: null,
|
||||
});
|
||||
expect(threadRuntimeHasInterruptibleRun(runtime)).toBe(false);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user