Repository navigation
fix(ui): wait for restored speech players after reload - #199502
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +1. Total +1 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 15, 2026, 1:46 AM ET / 06:46 UTC. |
|
Merged via squash.
|
…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) ...
) Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 810d0cb)
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]>
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.downloadresponse 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.