mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-24 10:13:11 +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
489 B
TypeScript
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));
|
|
}
|