mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-30 09:05:15 +01:00
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:
1 parent
3b4b270650
commit
83076d7e7c
59 files changed
+2696
-83
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user