Skip to content

fix(ui): surface Talk input backpressure - #123783

Merged
steipete merged 1 commit into
mainfrom
fix/autoqa-refill-talk-overflow
Aug 14, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/autoqa-refill-talk-overflow

Conversation

@steipete

@steipete steipete commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

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 remote ci-fast backend fell back to the supported worktree-scoped local gate.
  • oxfmt --check <three changed files> and git diff --check origin/main...HEAD — passed.
  • 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.
  • Rebased patch identity matches approved commit 09ecf115a255a09ada9af30f1a2fb79653be095c exactly.
  • Exact-head CI run 31826484607 — green on 08bb508ec8dc2cb71afbb254a418ca483da89fc6.
  • ClawSweeper review run 31826505472 — patch correct, security cleared, no findings or rank-up moves.

Sanitized Chromium proof—no private session, account, credential, recording, URL, path, token, or cookie data:

Realtime Talk input backpressure error

@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete steipete self-assigned this Aug 14, 2026
@steipete
steipete marked this pull request as ready for review August 14, 2026 17:58
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 14, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

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.

Proof:

  • OPENCLAW_HEAVY_CHECK_LOCK_SCOPE=worktree node scripts/run-vitest.mjs ui/src/pages/chat/realtime-talk-gateway-relay.test.ts — 40/40 passed.
  • OPENCLAW_HEAVY_CHECK_LOCK_SCOPE=worktree 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.
  • OPENCLAW_HEAVY_CHECK_LOCK_SCOPE=worktree node scripts/check-changed.mjs -- ui/src/pages/chat/realtime-talk-gateway-relay.ts ui/src/pages/chat/realtime-talk-gateway-relay.test.ts ui/src/e2e/browser-talk-start-stop.e2e.test.ts — passed; unavailable remote ci-fast routing used the supported local worktree fallback.
  • oxfmt --check <three changed files> and git diff --check origin/main...HEAD — passed.
  • Source-blind behavior validation — all four clauses passed; screenshot sanitized.
  • Fresh Codex autoreview — clean.
  • Exact-head CI run 31826484607 — green.
  • ClawSweeper review run 31826505472 — patch correct, security cleared, no findings or rank-up moves.
  • 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:

Realtime Talk input backpressure error

Known proof gaps: none for this browser-owned change. No config, protocol, provider, auth, native-client, dependency, schema, or changelog surface changed.

@steipete
steipete merged commit f22e499 into main Aug 14, 2026
201 of 209 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Browser Talk silently drops speech when relay appends stall

1 participant