Repository navigation
fix(talk): preserve agent consults when relay disconnects - #119212
vincentkoc wants to merge 3 commits into
Conversation
|
Codex review: found issues before merge. Reviewed August 7, 2026, 8:42 PM ET / August 8, 2026, 00:42 UTC. ClawSweeper reviewWhat this changesThis PR separates realtime Talk relay teardown from explicit cancellation so accepted OpenAI sideband consults can continue after a transport disconnect. Merge readiness⛔ Blocked by patch quality or review findings - 4 items remain Keep open: the unchanged head still aborts an accepted consult when relay removal races the later run-registration acknowledgement. Priority: P1 Review scores
Verification
How this fits togetherTalk’s Gateway relay carries realtime provider traffic, while the durable voice-session owner records consult runs and their effects. Relay closure should remove transport correlation without cancelling or losing registration for already admitted work. flowchart LR
Client[Voice client] --> Relay[Gateway realtime relay]
Relay --> Provider[Realtime provider sideband]
Provider --> Admission[Consult admission]
Admission --> Registration[Durable voice-run registration]
Relay --> Close{Relay closes}
Close --> Detach[Release relay correlation]
Registration --> Completion[Durable consult completion]
Detach --> Completion
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +34, Tests +157. Total +191 across 7 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Move accepted-run identity and durable voice-session binding to the admission owner, independent of the removable relay map, while retaining destructive behavior for explicit user and provider cancellation. Do we have a high-confidence way to reproduce the issue? Yes, from source: admit a consult, close or disconnect the relay during async startup, then allow onRunStarted to register; the deleted relay lookup causes the accepted run to be aborted. Is this the best way to solve the issue? No: transport detachment is the right direction, but leaving durable registration dependent on the removed relay map preserves the cancellation race. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 480e0c006067. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (12 earlier review cycles; latest 8 shown)
|
aa406c2 to
2ccdbbc
Compare
7b73d96 to
9f2cfec
Compare
2ccdbbc to
c2cf34a
Compare
9f2cfec to
b2510b6
Compare
b2510b6 to
d1d38f9
Compare
c2cf34a to
560fb4e
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
560fb4e to
bd4fae7
Compare
d1d38f9 to
a5bc302
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
bd4fae7 to
0f6dc93
Compare
a5bc302 to
3fb3668
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
0f6dc93 to
e6a6030
Compare
3fb3668 to
cb51356
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
e6a6030 to
069f48f
Compare
cb51356 to
f59272d
Compare
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
Punchcard-Session: cobalt-cedar-timber-04 Punchcard-Session: calm-cedar-river-aa
Punchcard-Session: calm-cedar-river-aa
Punchcard-Session: calm-cedar-river-aa
f59272d to
cad6aa8
Compare
069f48f to
aa5d583
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Superseded by the consolidated draft #121894. The replacement preserves admitted consult ownership across ordinary relay detach, retains explicit destructive cancellation, and folds the dependent output-identity work into one reviewable lifecycle change. |
What Problem This Solves
Normal relay teardown or provider disconnect aborted durable agent consults already launched for the voice turn. A transient transport boundary could cancel useful work even though the user never requested cancellation.
Why This Change Was Made
Relay teardown now uses a non-destructive detach path that drops relay-local correlation state without aborting durable agent runs. Direct session abort, explicit stop, supersession, and exact provider tool-call cancellation remain destructive. Late completion cannot append into a closed sideband.
User Impact
Accepted agent and tool work survives normal voice relay teardown and can finish durably, while explicit user or provider cancellation still stops the intended run.
Evidence
cad6aa8920627c7cb2a40f914a12bf9c02afcf8a.git diff --checkand private-data scan: clean.Stack
Depends on #119211.
Punchcard-Session: calm-cedar-river-aa