Repository navigation
fix(ui): prevent Talk E2E audio capture stalls - #138803
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: needs maintainer review before merge. Reviewed September 6, 2026, 9:18 PM ET / September 7, 2026, 01:18 UTC. ClawSweeper reviewWhat this changesThe PR gives Talk browser tests deterministic microphone streams while preserving native camera capture and checking audio cleanup after camera permission denial. Merge readiness✅ Ready for maintainer review Keep open: the fixture repair remains useful on current main, and no introduced correctness or security defect was found. The prior review contains no outstanding findings. Priority: P2 Review scores
Verification
How this fits togetherControl UI Talk tests drive voice and camera controls through Chromium with simulated Gateway and provider responses. Their media fixtures determine which browser resources are real and let tests observe session startup and cleanup. flowchart TD
A[Talk browser scenarios] --> B[Shared media fixture]
B --> C{Requested media}
C --> D[Deterministic microphone stream]
C --> E[Native camera or permission denial]
D --> F[Control UI Talk lifecycle]
E --> F
F --> G[Startup and cleanup assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +16, Tests -9. Total +7 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep deterministic media ownership in the shared test initializer while retaining separate native microphone lifecycle coverage and native camera assertions. Do we have a high-confidence way to reproduce the issue? Unclear independently: the PR identifies a concrete warm-Chromium sequence and reports before/after results, but this read-only review did not execute it. Is this the best way to solve the issue? Yes: consolidating fixture-owned audio state is a focused repair, and the existing camera and separate native microphone tests retain meaningful lifecycle coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6df7c32f477a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
@clawsweeper re-review The exact head now uses one profile-driven media fixture with fake audio and native or blocked camera behavior, fixing the warm-browser sequence failure. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
90fcebc to
c5baba4
Compare
|
Merged via squash.
|
…137098 * commit '8a540c252002878f3c3e9d8dfb837b83c8602a78': (2210 commits) perf(plugins): keep bundled catalog lookups lightweight (#140597) refactor: streamline skills JSON serialization (#140581) fix(feishu): expand quoted merged-forward messages (#136231) fix(talk): keep opaque realtime routes out of public config (#129144) fix(ci): avoid Linux packaging on pull requests (#140589) fix(usage): release completed request payloads (#140588) fix(tooling): omit Trae machine squash credit (#140562) fix(ui): stop catalog paging in hidden tabs (#140583) fix(portals): reach IPv6 loopback with IPv4-only localhost records (#140580) fix(transcripts): preserve fixed and legacy capture history (#140563) fix(ui): prevent Talk E2E audio capture stalls (#138803) fix(media): release completed document source buffers (#140561) fix(anthropic): preserve resumed CLI caches across Git changes (#140566) chore(ui): refresh control ui locales (#140586) fix(ui): keep usage exports bound to their session instance (#140573) refactor(exa): test response readers through tool execution (#140572) fix(macos): omit incompatible worker binaries from app bundles (#140557) fix: avoid retaining discarded tool output (#140570) refactor(gateway): share placement move matching (#140569) fix(gateway): preserve child turns during systemd drain (#140568) ... # Conflicts: # .agents/skills/release-openclaw-maintainer/SKILL.md # docs/reference/RELEASING.md
* fix(ui): stabilize Talk audio fixture * fix(ui): isolate Talk media fixtures
What Problem This Solves
Fixes an issue where Control UI Talk E2E cases could stall in a warm Chromium process after an earlier fixture used the browser's native audio stack. This left later Gemini and blocked-camera cases stuck connecting even though
talk.client.createsucceeded.Why This Change Was Made
One serializable, profile-driven browser initializer now owns media behavior for ordinary Talk, native-camera Video Talk, and blocked-camera Video Talk fixtures. Audio-only requests receive a fresh deterministic fake stream and idempotent track, fixture pages use only the minimal mocked
AudioContextsurface, native video capture remains real, and blocked video requests fail before recording a track.User Impact
No production behavior changes. Talk browser coverage now remains deterministic when the full file shares one warm browser process, while still proving native camera dimensions, permission guidance, and resource cleanup.
Evidence
connectingaftertalk.client.create, while each passed alone.ended+ended,ended+ended, andended.git diff --check: passed.tsgo:ui: fixture errors are gone; only four unrelated stale-installassertBeforeRenameerrors remain insrc/infra/install-package-dir.ts.122017f5: production +0/-0; test support +155/-172 (net -17).90fcebcb876714020ee9aa15c2d476b47f1c8147.Agent Transcript
Redacted Codex session transcript