mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 02:26:12 +02:00
Validate completion revisions in-turn, clarify text questions and approved handoffs, and make continuation and approval-overlap fixtures deterministic. Add native Claude question round-trip coverage. Co-Authored-By: Paperclip <noreply@paperclip.ing>
8 lines
517 B
TypeScript
8 lines
517 B
TypeScript
import { expect, it } from "vitest";
|
|
import { answerableRuntimeRunIds } from "./runtime-question-readiness.js";
|
|
it("recognizes only a pending native question as an answerable active turn", () => {
|
|
const native = { kind: "ask_user_questions", status: "pending", sourceRunId: "live", payload: { runtimeRequestId: "request" } };
|
|
expect([...answerableRuntimeRunIds([native])]).toEqual(["live"]);
|
|
expect([...answerableRuntimeRunIds([{ ...native, status: "answered" }, { ...native, payload: {} }])]).toEqual([]);
|
|
});
|