Repository navigation
fix(ui): stop Talk microphone polling after session cleanup - #117573
Conversation
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 3:08 PM ET / 19:08 UTC. ClawSweeper reviewWhat this changesThe PR makes the browser Talk audio meter create its 100 ms polling interval before the first synchronous level callback, removes a Google Live-specific cleanup guard, and adds reentrant-stop regression tests. Merge readinessNo blocking correctness finding. The shared meter on current Priority: P2 Review scores
Verification
How this fits togetherBrowser Talk transports create a shared microphone-level meter after obtaining media input. The meter reports levels to transport callbacks; those callbacks can synchronously stop the session, which must release audio resources and polling before the transport continues setup. flowchart TD
A[Browser microphone stream] --> B[Shared Talk audio meter]
B --> C[Create polling interval]
C --> D[Publish initial level]
D --> E[Transport callback]
E --> F[Session stop and cleanup]
F --> G[Clear interval and audio nodes]
B --> H[WebRTC, gateway relay, Google Live, dictation]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -3, Tests +93. Total +90 across 5 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one shared meter lifecycle invariant: register every cleanup-owned resource before invoking a synchronous callback, retain the focused transport regressions, and merge after the exact head completes its required checks. Do we have a high-confidence way to reproduce the issue? Yes, from source: configure an initial microphone-level callback to synchronously stop its owning transport; current main then assigns the interval after cleanup, while the branch tests assert the timer count returns to zero. Is this the best way to solve the issue? Yes. Moving interval ownership ahead of the synchronous callback fixes the invariant at the shared meter used by WebRTC, gateway relay, Google Live, and dictation, rather than retaining a provider-local recovery guard. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ebf121af6ab5. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
…reentrant-stop-20260801 * origin/main: fix(openai): keep embedding identity stable across upgrades (#117557) fix(googlechat): drop invalid thread resource names before send (#108324) fix(skills): preserve profile in ClawHub command hints (#117555) fix(cli): explain filtered plugin policy without unsafe recovery (#117556) fix(irc): strip markdown from outbound text (#112961)
|
Maintainer review complete on Reviewed the shared meter lifecycle, WebRTC, gateway relay, Google Live, and composer callers. No findings. ClawSweeper's 4/6 review had no findings or rank-up moves; the only requested next step was ordinary maintainer review, now complete. |
|
Maintainer landing record for the requested no-squash merge:
The repo-native prepare and merge verification passed. GitHub rejected the native merge only because merge commits are disabled, so this preserves the reviewed signed history without squashing. Merged-tree proof:
|
…#117573) * commit 'a188419da62b3b4bc94e3a029f7a894be047116b': test(ui): cover reentrant Talk meter cleanup fix(ui): reclaim reentrant Talk audio meters
Related: #116201
What Problem This Solves
Fixes an issue where stopping a browser Talk session from its first microphone-level update could leave the audio meter's 100 ms polling interval running after the session had released its media resources.
Why This Change Was Made
The shared meter now owns its interval before publishing the initial synchronous level update, so reentrant transport cleanup can always clear the timer. The Google-specific second-stop workaround is removed because WebRTC, gateway relay, Google Live, and composer dictation now share the same lifecycle invariant.
User Impact
Stopped Talk sessions no longer retain a dormant microphone polling interval after reentrant cleanup. Existing microphone activity, stop behavior, and provider behavior remain unchanged.
No provider, config, environment-variable, protocol, SDK, or docs surface changes.
Evidence
b71c9b69b1dce0edfb7d2a238fbdc82c77f30503a9849304489353d37dbe36c922cdbec0b6c618faat 4/6 with no findings or rank-up moves; ordinary maintainer review completed across the shared meter and its callers71b35c3e1db158b21983fde1e456dd6f0b6b3797; all five touched file blobs were byte-identical before the merge