Repository navigation
fix(talk): retain readiness during relay startup - #190466
Merged
Merged
Conversation
Attach the sideband before accepting the WebRTC answer and defer readiness notification until startup succeeds. Reject terminal startup events before replaying buffered readiness. Co-authored-by: JamesY023 <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review endedClawSweeper stopped reviewing this revision because the pull request closed. |
roboclaw-bot
marked this pull request as ready for review
November 1, 2026 15:39
Put the comment on its own line so the scalar parser accepts the 63-line regression allocation. Co-authored-by: JamesY023 <[email protected]>
Collaborator
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 2, 2026
* fix(talk): retain readiness during relay startup Attach the sideband before accepting the WebRTC answer and defer readiness notification until startup succeeds. Reject terminal startup events before replaying buffered readiness. Co-authored-by: JamesY023 <[email protected]> * fix(talk): correct readiness regression allocation format Put the comment on its own line so the scalar parser accepts the 63-line regression allocation. Co-authored-by: JamesY023 <[email protected]> --------- Co-authored-by: JamesY023 <[email protected]>
github-actions Bot
pushed a commit
to clawhaven/openclaw
that referenced
this pull request
Nov 23, 2026
* fix(talk): retain readiness during relay startup Attach the sideband before accepting the WebRTC answer and defer readiness notification until startup succeeds. Reject terminal startup events before replaying buffered readiness. Co-authored-by: JamesY023 <[email protected]> * fix(talk): correct readiness regression allocation format Put the comment on its own line so the scalar parser accepts the 63-line regression allocation. Co-authored-by: JamesY023 <[email protected]> --------- Co-authored-by: JamesY023 <[email protected]> (cherry picked from commit 60c2748) Release adaptation: Full sideband-before-answer ordering fix. Baseline applies answer before socket and replays buffered frames before terminal rejection. Existing transport authority and teardown owners retained; later timer-probe additions independent. Co-authored-by: RomneyDa <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #144604, thanks @JamesY023.
Related: #144597
What Problem This Solves
Fixes: a GPT-Live Talk relay can miss readiness during WebRTC startup, or announce readiness before a startup failure.
User Impact
Talk clients receive one readiness notification after successful relay startup, including when the provider starts during answer application. Failed startup does not announce readiness. No configuration changes are required.
Why This Change Was Made
The existing relay owner now attaches its sideband before applying the answer, retains early provider readiness in its existing flags, and publishes it after startup succeeds. Buffered terminal events are rejected before replay. Direct transport keeps its audio-start behavior.
The change removes the session-event handler's competing connection-state write. Production delta is +6 lines for startup notification and cancellation checks; no dead code was found to offset that safely. Tests add 63 lines, with a matching test-line allocation for these previously uncovered startup contracts. This replacement does not add the contributor's data-channel fallback.
Evidence
091971671f836aaa111a8b83bd59b613c5504aff: the relay lost readiness emitted during answer application, and replayed readiness from a terminated startup.pnpm test extensions/openai/realtime-quicksilver-gateway-bridge.test.ts --maxWorkers=1: 12 passed, 6.65 s Vitest / 8.41 s runner wall time (1.07 s tests). Covers accepted/rejected answers, one notification, buffered startup termination, and cleanup.realtime-quicksilver-gateway-direct.test.ts,realtime-quicksilver-gateway-errors.test.ts, andrealtime-quicksilver-gateway-audio.test.ts: 17 passed, 39.13 s runner wall time. Includes direct readiness, reentrant close, capture, and error/lifecycle behavior.git diff --checkpassed. Independent autoreview against pinned base091971671f83: initial readiness change scoped-clean for P0–P2; correction review accepted the allocation fix and identified one P2 to stage it, resolved inefc2f7df9621. No readiness-code findings. Local ClawSweeper is unavailable; the hosted review was already queued. Author simplification retained the existing owner and state.efc2f7df9621puts that comment on its own line; the actual parser accepts 63. Runtime and regression-test bytes are unchanged, so their passing focused proof is reused. Current-head PR CI remains the broad gate.efc2f7df96212f7cb44085504114f200de45338b. Native landing verified the exact head and merged it as60c2748f4927cdcee0cab9617aa822a6ef53aa09.gh pr view/diffand was never checked out or executed.Human credit retained in both commits and the final squash trailer:
Co-authored-by: JamesY023 <[email protected]>.