feat: return completed handoffs to Agent Chat (#14408)

Return completed Agent Chat handoffs through a durable outbox and scope each generated update to its supplied tasks. Add recovery, browser delivery, result access, and calibrated quality coverage.

Validated with two consecutive ten-case Claude/Codex campaigns, all CI checks, and a 5/5 review.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip authored and GitHub committed 2026-09-29 10:25:52 -05:00
1 parent 3b4b270650
commit 83076d7e7c
59 files changed
+2696 -83

No files matched your search

+9
View File
@@ -50,6 +50,15 @@ export function contextCommentGateSelected(executionIds: readonly string[] = JSO
return executionIds.some((id) => id.endsWith(".ordered-comment-continuation"));
}
/** Scope a completion-overlap transport hold to the exact source conversation. */
export async function arm(issueId: string): Promise<void> {
await touchExclusive(path.join(issueDir(issueId), "armed"));
}
export async function isArmed(issueId: string): Promise<boolean> {
return exists(path.join(issueDir(issueId), "armed"));
}
export async function waitUntilHeld(issueId: string, deadlineAt: number): Promise<void> {
const file = path.join(issueDir(issueId), HELD_FILE);
while (Date.now() < deadlineAt) {