mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-22 16:51:28 +02: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
@@ -356,8 +356,13 @@ async function promoteDeferredWake(
|
||||
// after completion; it cannot revive a cancelled task. Other stale
|
||||
// continuations cannot revive assignee execution. Cancel before claiming promotion so
|
||||
// the compare-and-set still sees the deferred wake.
|
||||
const onboardingResultReport = currentIssue.status === "done" && currentIssue.originKind === "onboarding_first_task" &&
|
||||
await ports.transaction.isCompletedOnboardingHandoffWake({ companyId: run.companyId, issueId: currentIssue.id,
|
||||
agentId: workingCandidate.agentId, reason: workingCandidate.wakeReason ?? workingCandidate.reason,
|
||||
contextSnapshot: workingCandidate.deferredContextSeed });
|
||||
if (
|
||||
!shouldReopen &&
|
||||
!onboardingResultReport &&
|
||||
(currentIssue.status === "done" || currentIssue.status === "cancelled") &&
|
||||
workingCandidate.agentId === currentIssue.assigneeAgentId
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user