Repository navigation
fix(talk): return yielded subagent results to voice - #129535
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 8, 2026, 10:48 PM ET / September 9, 2026, 02:48 UTC (Revision 7). ClawSweeper reviewWhat this changesReturns consolidated subagent results to an active Talk voice session after yielding, with one-shot delivery and revocation when the voice owner changes. Merge readiness⛔ Blocked before merge - 1 item remains This remains a useful, distinct fix absent from current main and v2026.9.3. The earlier delivery and ownership findings are addressed, and no blocking introduced defect was found. Priority: P1 Review scores
Verification
How this fits togetherTalk delegates spoken requests to OpenClaw agents while keeping the conversation responsive. After child agents finish, the existing settlement flow synthesizes the answer; this change attaches that answer to the currently authorized voice delegation. flowchart TD
A[Spoken request] --> B[Talk consult owner]
B --> C[Yield and acknowledge]
C --> D[Child agents settle]
D --> E[Consolidated requester answer]
E --> F{Voice owner still authorized?}
F -->|Yes| G[Append answer once]
F -->|No| H[Discard voice attachment]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +422, Tests +792. Total +1214 across 23 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep durable requester settlement as the sole completion owner and deliver its answer through a bounded, revocable voice attachment. Do we have a high-confidence way to reproduce the issue? Yes, from source: a Talk consult that yields returns before the consolidated child result, while current main only handles its immediate payload. No runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? Yes. Attaching presentation to the existing settled requester answer avoids a competing completion flow and preserves durable delivery independently of voice-session lifetime. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e427f280d961. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
99c9bc0 to
f17d933
Compare
d4b8958 to
68b95a6
Compare
|
@clawsweeper re-review Exact-head production-path proof is now recorded in the PR body: one authorized delayed append, duplicate rejection, and zero provider sends after stale ownership, replacement (including the post-acknowledgement deferred-teardown window), cancellation, and composed-claim revocation. The exact-head cropped visual sequence and privacy scan are also complete. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact-head production-path proof is now recorded in the PR body: one authorized delayed append, duplicate rejection, and zero provider sends after stale ownership, replacement (including the post-acknowledgement deferred-teardown window), cancellation, and composed-claim revocation. The exact-head cropped visual sequence and privacy scan are also complete. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
Return yielded subagent completions to the active Talk session through a revocable, owner-bound callback. Preserve generation-bound steering and reject duplicate, stale, replaced, or cancelled delivery before provider I/O. Verified with exact-head CI, focused regression coverage, native i18n, a real provider socket, and sanitized visual proof.


What Problem This Solves
Talk could acknowledge delegated subagent work and remain responsive, but the consolidated result returned only to chat after the requester yielded. Two follow-up defects also allowed transcript-only finals to omit their visible text and retained callbacks to outlive a replaced Talk Gateway owner.
Related: #129186, #129144, #121894, #118499, #118505
Why This Change Was Made
User Impact
Talk can delegate work without blocking the live conversation. The consolidated parent answer returns to chat and the active voice delegation exactly once. Retired owners cannot speak a late result.
Exact-Head Evidence
fa2bf20e148536c1c33dcf3bf12712206bc4a6b9requesterFinal. The controller-local types now live in a scoped companion module and the owner runner advertises the real request shape.check:changedpassed the changed-file gates and stopped only at one unrelated repository-wide compatibility record that became due on September 9, 2026.Real Provider Authority Proof
An isolated exact-source build used the current Platform API-key path and a real provider socket. The public proof contains only sanitized booleans, counters, and monotonic timings.
{ "providerSocketOpen": true, "yieldedAcknowledgementBeforeFinal": true, "requesterFinalRegistered": true, "requesterFinalPromoted": true, "requesterFinalConsumedOnce": true, "duplicateConsumptionRejected": true, "activeDelayedFinalExactlyOnce": true, "staleRevokedBeforeProviderIo": true, "replacedRevokedBeforeProviderIo": true, "postAcknowledgementReplacementRejectedBeforeProviderIo": true, "postAcknowledgementReplacementRevokedSynchronously": true, "postAcknowledgementReplacementRunPreserved": true, "cancelledRevokedBeforeProviderIo": true, "composedClaimRevokedBeforeProviderIo": true, "steeringRetainedOriginalBeforeSuccess": true, "steeringRetargetedAfterSuccess": true, "privacyScanClean": true, "activeDelayedFinalOutboundAppends": 1, "duplicateOutboundAppends": 0, "staleOutboundSends": 0, "postAcknowledgementReplacementOutboundSends": 0, "cancelledOutboundSends": 0, "composedClaimOutboundSends": 0, "successfulConsumptions": 1, "duplicateRejections": 1, "providerConnectedMs": 4330, "yieldedAcknowledgedMs": 4358, "simulatedChildFinalMs": 4480, "elapsedMs": 5134 }Artifact:
pr3-public-proof.jsonVisual Proof
An exact-head, cropped, muted mobile Talk sequence shows the conversation listening before delayed completion and still listening after the completion appears exactly once. The artifact metadata and images passed privacy and secret scans.
talk-before-delayed-completion.pngtalk-after-delayed-completion.pngpr3-visual-proof.jsonDependency Contract
Direct Codex source inspection was refreshed at
openai/codex@dafb6781ee76b06ed41bdbe004484087925e22a6:codex-rs/core/src/tools/handlers/multi_agents_v2/spawn.rs:207-269: spawn starts the child and returns without waiting for completion.codex-rs/core/src/tools/handlers/multi_agents_v2/wait.rs:40-117: waiting is explicit.codex-rs/core/src/session/turn_input.rs:472-507: successful steering applies only after exact-turn submission succeeds.codex-rs/app-server/src/request_processors/turn_processor.rs:1018-1127: empty, inactive, and mismatched steering requests are rejected.codex-rs/core/tests/suite/subagent_notifications.rs:931-959: the independent child notification path remains covered.Review Metrics
+35/-20(net+15), concentrated in the explicit Gateway owner fence and invariant comments.+30/-10(net+20).+37/-22(net+15), consisting of a type-only companion extraction and the corrected owner request contract.This is awaiting exact-head hosted CI, Testbox, current ClawSweeper review, and the native maintainer merge workflow.