You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AI-assisted: yes. The change and evidence were reviewed by the maintainer-requested Claude land decision and a fresh Codex autoreview.
What Problem This Solves
Fixes an issue where browser Talk users could lose speech without any indication when four Gateway-relay microphone append requests were already pending. Talk continued listening even though later captured frames never reached the Gateway.
Why This Change Was Made
The Gateway-relay browser transport now routes append-capacity overflow through the existing append-failure owner. It shows Realtime Talk audio input fell behind, closes the relay once, and aborts its pending appends while preserving the four-request bound, normal append failure and ordering, output behavior, and all public contracts.
The change is limited to the Control UI browser owner. It does not alter configuration, protocol, provider, authentication, native-client behavior, or the changelog.
Production LOC: +16/-16 (net 0) | Tests: +81/-5 (net +76)
User Impact
Browser Talk no longer silently continues after its microphone uplink falls behind. Users see an actionable error with the existing dismiss and stop controls instead of unknowingly speaking into an incomplete provider input stream.
Evidence
Before the repair, the focused regression failed with four append requests still active and no status callback. On the rebased PR head:
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/browser-talk-start-stop.e2e.test.ts — 9/9 passed in Chromium.
node scripts/check-changed.mjs -- <three changed files> — passed; the unavailable remote ci-fast backend fell back to the supported worktree-scoped local gate.
Source-blind behavior validation — all four contract clauses passed: four-request cap, visible alert, one close with pending-append abort, and available dismiss/stop controls.
Fresh Codex autoreview on origin/main...HEAD — clean, no accepted/actionable findings.
Land-ready on exact head 08bb508ec8dc2cb71afbb254a418ca483da89fc6.
The original reproduction held four talk.session.appendAudio requests pending and delivered a fifth microphone frame. Before the repair, the focused regression failed with all four requests still active and no visible status. After the repair, capacity overflow uses the existing append-failure owner: one visible error, pending-append abort, and one relay close.
OPENCLAW_TESTBOX=1 scripts/pr prepare-run 123783 — complete; hosted exact-head gates passed and the remote PR tree matches the reviewed head. No separate Testbox lease was required.
Production LOC: +16/-16 (net 0) | Tests: +81/-5 (net +76)
Sanitized visual proof:
Known proof gaps: none for this browser-owned change. No config, protocol, provider, auth, native-client, dependency, schema, or changelog surface changed.
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
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.
Closes #123781
AI-assisted: yes. The change and evidence were reviewed by the maintainer-requested Claude land decision and a fresh Codex autoreview.
What Problem This Solves
Fixes an issue where browser Talk users could lose speech without any indication when four Gateway-relay microphone append requests were already pending. Talk continued listening even though later captured frames never reached the Gateway.
Why This Change Was Made
The Gateway-relay browser transport now routes append-capacity overflow through the existing append-failure owner. It shows
Realtime Talk audio input fell behind, closes the relay once, and aborts its pending appends while preserving the four-request bound, normal append failure and ordering, output behavior, and all public contracts.The change is limited to the Control UI browser owner. It does not alter configuration, protocol, provider, authentication, native-client behavior, or the changelog.
Production LOC: +16/-16 (net 0) | Tests: +81/-5 (net +76)
User Impact
Browser Talk no longer silently continues after its microphone uplink falls behind. Users see an actionable error with the existing dismiss and stop controls instead of unknowingly speaking into an incomplete provider input stream.
Evidence
Before the repair, the focused regression failed with four append requests still active and no status callback. On the rebased PR head:
node scripts/run-vitest.mjs ui/src/pages/chat/realtime-talk-gateway-relay.test.ts— 40/40 passed.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/browser-talk-start-stop.e2e.test.ts— 9/9 passed in Chromium.node scripts/check-changed.mjs -- <three changed files>— passed; the unavailable remoteci-fastbackend fell back to the supported worktree-scoped local gate.oxfmt --check <three changed files>andgit diff --check origin/main...HEAD— passed.origin/main...HEAD— clean, no accepted/actionable findings.09ecf115a255a09ada9af30f1a2fb79653be095cexactly.08bb508ec8dc2cb71afbb254a418ca483da89fc6.Sanitized Chromium proof—no private session, account, credential, recording, URL, path, token, or cookie data: