Files
PaperClipAI/tests/runner-e2e/runtime-question-readiness.test.ts
T
DottaandPaperclip cd34aaee0c Fix native Claude question bridging and runner behavioral regressions
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>
2026-09-18 22:05:48 -05:00

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([]);
});