Skip to content

fix(ui): wait for restored speech players after reload - #199502

Merged
vincentkoc merged 1 commit into
mainfrom
fix/ci436768-tts
Nov 26, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/ci436768-tts

Conversation

@steipete

@steipete steipete commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the delayed-speech E2E failure when the latest player is ready after reload while an earlier attachment is still being authorized. Maintainer CI-fixer follow-up for scheduled run 43676814527.

User Impact

No user-visible behavior change. The real-Gateway scenario still requires every expected speech player, playable decoded audio on the original answer, and no extra “Audio reply” message.

Why This Change Was Made

Each managed attachment receives its own asynchronous download grant. Readiness of the latest answer does not establish readiness of the earlier player. Await the existing exact total-player assertion; preserve its expected count, all other assertions, and all timeouts.

Evidence

A controlled native WebSocket response gate held only the earlier answer’s genuine artifacts.download response after reload. All six bubbles stayed mounted and the latest audio decoded and played while the earlier player was pending. Both probes released that same unchanged packet at the first total-count sample: the original assertion failed with the exact one-versus-two signature, and the awaited assertion passed. Diagnostic gates are removed from the final test. The scheduled run lacks a per-artifact timeline, so its exact packet order remains unobserved.

The complete final real-Gateway scenario passes in 8.075 seconds. The default tsrs UI E2E graph, scoped lint/format, and diff checks pass. Production delta: zero; test delta: 2 added, 1 removed lines; no new test case.

Canonical local Codex review of the final change against 281042bc8a92be29a6706a0a99479b09df2375be, with the complete test and source owners supplied, completed P0–P2 scoped-clean with no findings.

CI checkpoint: attempt 1 UI shard 1 stopped during “Setup Node environment” with exit 100, before tests. The corresponding spacing PR job passes with the identical setup action. The configured GitHub writer rejected the targeted infrastructure retry before dispatch. Attempt 1 remains current; the retry is blocked and no merge request has been submitted for this PR.

@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review November 15, 2026 06:17
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T06:19:02.744824Z 0ab24d6 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed 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 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR waits for all expected speech players to appear instead of sampling their count immediately.

Example: Reload a chat containing two spoken answers while the first attachment's download grant arrives last.

  • Before: The second answer plays, but the immediate total-count assertion fails with 1 instead of 2.
  • After: The assertion waits for exactly 2 players while retaining playback and duplicate-message checks.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is narrow and source-supported; execution evidence is author-reported, and the failed hosted shard never reached tests.
Proof confidence 🦐 gold shrimp (3/6) This changes only test synchronization; the body reports controlled real-Gateway red/green probes and a passing final scenario, with no new user-visible behavior requiring separate shipped-entry-point proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: A valid reload can fail the speech regression test while an earlier attachment is still becoming ready.
Reason: The maintainer-authored change removes a false failure while preserving the original user-facing speech contract.

Merge readiness

✅ Ready for maintainer review

This PR is a focused, correct repair to an asynchronous E2E assertion that remains unchanged on main; no actionable code findings were found.

Priority: P3
Reviewed head: 0ab24d680e17cf473927fb3fe5c84be576006c24

Before merge

None.

Findings

None.

Agent review details

How this fits together

The real-Gateway browser test sends chat turns through a synthetic provider, reloads persisted history, and checks that generated speech remains attached to the original answers.

flowchart LR
  A[Browser test] --> B[Real Gateway]
  B --> C[Synthetic speech provider]
  B --> D[Restored chat attachments]
  D --> E[Per artifact download grants]
  E --> F[Audio players]
  F --> G[Exact count and playback assertions]
Loading

Technical review

Best possible solution:

Keep the exact-count assertion in the existing browser scenario and await independently restored players through its existing polling mechanism.

Do we have a high-confidence way to reproduce the issue?

Source establishes that readiness of one artifact cannot establish readiness of another; the author reports a controlled failing-before/passing-after reproduction, but this read-only review ran no tests.

Is this the best way to solve the issue?

The change is the smallest complete repair: it waits for the observable state already required by the test without changing production owners, expected counts, or coverage.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7a60c1a148c6.

Provenance checked

  • Speech player total-count assertion keeps the original intent (b0769ff: The original repair required playable speech on the original answers, the expected total number of players, and no separate Audio reply message during live chat and reload.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit c90f579 adds ui/src/e2e/chat-tts-supplement.real-gateway.e2e.test.ts:356 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c90f579d60c2; files: ui/src/e2e/chat-tts-supplement.real-gateway.e2e.test.ts)
  • weiqinl: Raw commit b0769ff adds ui/src/e2e/chat-tts-supplement.real-gateway.e2e.test.ts:284 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b0769ff66ffe; files: ui/src/e2e/chat-tts-supplement.real-gateway.e2e.test.ts)

PR surface

Tests +1. Total +1 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 2 1 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 2 1 +1

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a low-risk test reliability repair with no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 15, 2026, 1:46 AM ET / 06:46 UTC.

@vincentkoc vincentkoc self-assigned this Nov 26, 2026
@vincentkoc
vincentkoc merged commit 810d0cb into main Nov 26, 2026
212 of 216 checks passed
@vincentkoc
vincentkoc deleted the fix/ci436768-tts branch November 26, 2026 01:39
@vincentkoc

Copy link
Copy Markdown
Member

Merged via squash.

vincentkoc added a commit that referenced this pull request Nov 26, 2026
…irement-rule

* origin/main: (172 commits)
  test(gateway): expect a revoked person's Goal retry to be hidden as not found (#205698)
  fix: keep browser disabled when only hardening relay authentication (#203137)
  fix: recover Linux stream automations after command-anchor crashes (#203149)
  fix(whatsapp): identify voice-note captions as text in delivery receipts (#205381)
  fix(test): unblock restart-auth plugin and worker publication qualification (#205679)
  chore(ui): refresh control ui locales (#205691)
  fix: reduce memory during SQLite usage refresh (#201064)
  fix(plugins): readmit native captures with a dangling host link
  chore(i18n): refresh native locales (#205680)
  fix(update): hash SQLite lock bytes as zeros so Windows exclusion cannot fail verification (#205668)
  fix(skill-workshop): skip the skill diet for skills with Markdown outside support directories (#204881)
  fix(plugins): clarify dated SDK migration notices (#200932)
  fix: keep the resident launcher when reinstalling Gateway (#205655)
  fix: show the whole reply when you reopen a TUI session (#200455)
  test(ui): wait for restored speech player authorization (#199502)
  feat: let agents post approved GitHub comments (#204301)
  fix(agents): honor imageMaxDimensionPx at the provider and CLI image handoffs (#205663)
  chore(ui): refresh control ui locales (#205664)
  fix(google): preserve playback when Google Live splits audio into parts (#205364)
  fix: show named characters in exported session messages (#205362)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 26, 2026
tideclaw-bot pushed a commit that referenced this pull request Nov 28, 2026
Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit 810d0cb)
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit 810d0cb)

Companion audit: No later source follow-up; keep the real speech authorization probe bounded to this fixture.

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

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants