mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-22 16:51:28 +02:00
Initialize the operational skill for legacy continuation fixtures, verify task attachment bytes, allow Claude’s optional custom-answer field, and distinguish unstarted dependency-blocked wakes from failed provider executions. Co-Authored-By: Paperclip <noreply@paperclip.ing>
10 lines
551 B
TypeScript
10 lines
551 B
TypeScript
import { expect, it } from "vitest";
|
|
import { isBlockedUnstartedWake } from "./non-execution-wake.js";
|
|
it("recognizes only explicitly suppressed wakes that never started execution", () => {
|
|
const run = { status: "cancelled", errorCode: "issue_dependencies_blocked", startedAt: null };
|
|
expect(isBlockedUnstartedWake(run)).toBe(true);
|
|
for (const patch of [{ startedAt: "2026-09-18" }, { startedAt: undefined }, { errorCode: "user_cancelled" }, { status: "failed" }]) {
|
|
expect(isBlockedUnstartedWake({ ...run, ...patch })).toBe(false);
|
|
}
|
|
});
|