Skip to content

fix(talk): retain readiness during relay startup - #190466

Merged
roboclaw-bot merged 2 commits into
mainfrom
loop/contributor-pr-144604
Nov 1, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
loop/contributor-pr-144604

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Red on main 091971671f836aaa111a8b83bd59b613c5504aff: the relay lost readiness emitted during answer application, and replayed readiness from a terminated startup.
  • Green: 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.
  • Green: named realtime-quicksilver-gateway-direct.test.ts, realtime-quicksilver-gateway-errors.test.ts, and realtime-quicksilver-gateway-audio.test.ts: 17 passed, 39.13 s runner wall time. Includes direct readiness, reentrant close, capture, and error/lifecycle behavior.
  • Touched-file type-aware lint and formatting passed; git diff --check passed. Independent autoreview against pinned base 091971671f83: initial readiness change scoped-clean for P0–P2; correction review accepted the allocation fix and identified one P2 to stage it, resolved in efc2f7df9621. No readiness-code findings. Local ClawSweeper is unavailable; the hosted review was already queued. Author simplification retained the existing owner and state.
  • Initial PR CI found an inline comment in the test-line allocation that its scalar parser rejects. efc2f7df9621 puts 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.
  • Current-head PR CI passed on efc2f7df96212f7cb44085504114f200de45338b. Native landing verified the exact head and merged it as 60c2748f4927cdcee0cab9617aa822a6ef53aa09.
  • Unit-only validation was requested for this production host; no browser, WebRTC end-to-end, live provider, or carrier call was run. Contributor code was read with gh pr view/diff and was never checked out or executed.

Human credit retained in both commits and the final squash trailer: Co-authored-by: JamesY023 <[email protected]>.

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]>
@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review ended

ClawSweeper stopped reviewing this revision because the pull request closed.

View the workflow run.

@roboclaw-bot
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]>
@roboclaw-bot
roboclaw-bot merged commit 60c2748 into main Nov 1, 2026
99 checks passed
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@roboclaw-bot
roboclaw-bot deleted the loop/contributor-pr-144604 branch November 1, 2026 16:01
@roboclaw-bot

Copy link
Copy Markdown
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. extensions: openai size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant