Files
PaperClipAI/tests/runner-e2e/runtime-question-readiness.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
489 B
TypeScript

/** Provider-native questions pause inside a turn; they need an answer, not a
* terminal run. Plain semantic questions instead wake a subsequent run. */
export function answerableRuntimeRunIds(interactions: ReadonlyArray<Record<string, any>>): Set<string> {
return new Set(interactions.filter((i) => i.kind === "ask_user_questions" && i.status === "pending" &&
typeof i.sourceRunId === "string" && typeof i.payload?.runtimeRequestId === "string")
.map((i) => i.sourceRunId));
}