Repository navigation
test(android): drain speech queue before Wear abort assertion - #172252
Conversation
|
@clawsweeper review |
|
🦞👀 Re-review progress:
|
|
ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment |
|
Codex review: needs maintainer review before merge. What this changesThis PR drains the existing UI and speech queues before asserting that Abort stops playback. Example: Abort is clicked while “Existing speech” is playing and its RPC response is held.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR makes a focused fixture correction while preserving the Abort outcome checks; no introduced defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Wear Compose action requests speech cancellation and a remote Abort; the Robolectric fixture observes playback and reply state while controlling the remote response. flowchart LR
A[Abort action] --> B[Wear speaker queue]
B --> C[Android text to speech]
A --> D[Wear ViewModel]
D --> E[Held Abort response]
F[Fixture queue drain] --> B
F --> G[Playback assertion]
Technical reviewBest possible solution: Use the existing queue drain while retaining the unresolved RPC gate and all outcome assertions. Do we have a high-confidence way to reproduce the issue? Source establishes that clicking Abort queues speech stopping while the old assertion reads playback immediately; no tests were executed during this read-only review. Is this the best way to solve the issue? Reusing the fixture's existing drain matches the asynchronous speaker contract without retries, sleeps, weakened outcome checks, or production changes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 86154880b058. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +1. Total +1 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel 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 October 14, 2026, 11:13 AM ET / 15:13 UTC. |
|
Merged via squash.
|
…1508) * fix(macos): join Doctor repair before completing bundled recovery * fix(macos): retain service environment during bundled recovery * fix(macos): retain Doctor child custody during bundled recovery * test(macos): prove bundled recovery in an app host * test(macos): require owned stop before recovery fixtures * test(macos): drain recovery before restoring fixture state * test(macos): validate ordinary bundled recovery and relaunch in CI * fix(macos): preserve lazy Doctor result and literal proof filters * refactor(cli): extract Doctor startup admission * fix(e2e): accept settled modern Gateway readiness * fix(macos): localize Gateway recovery ownership errors * test(e2e): align fixtures with modern Gateway readiness * fix(macos): align recovery app-host test ownership * fix(i18n): leave native generated locales to refresh owner * test(macos): seed missing plugin peer for recovery proof * fix(state): restore database reader typecheck Complete the engine-neutral handle cutover for the pending approval and due-approval readers. Keep compressed transcript navigation queries explicitly SQLite-only rather than inheriting the engine-neutral cache default. Fixes the three core TypeScript errors introduced by 1edc42c. Core typecheck, 39 focused transcript/approval tests, targeted lint and format pass. Independent review found no P0/P1 issues. Co-authored-by: steipete <[email protected]> (cherry picked from commit 920ab44) * test(macos): expose recovery wait diagnostics and repair CI fixtures * test(macos): match actual accessibility text values in recovery proof * fix(macos): read checkpointed native WAL state during recovery * fix(macos): preserve Gateway recovery failure diagnostics * test(macos): type recovery diagnostic cases before macro expansion * test(macos): expose unexpected recovery refusal diagnostics * fix(macos): defer persistence during owned recovery * test(macos): keep bundled recovery setup in its app profile * fix(macos): recognize healthy protected bundled service identity * test(android): drain speech queue before Wear abort assertion (#172252) --------- Co-authored-by: steipete <[email protected]>
…1508) * fix(macos): join Doctor repair before completing bundled recovery * fix(macos): retain service environment during bundled recovery * fix(macos): retain Doctor child custody during bundled recovery * test(macos): prove bundled recovery in an app host * test(macos): require owned stop before recovery fixtures * test(macos): drain recovery before restoring fixture state * test(macos): validate ordinary bundled recovery and relaunch in CI * fix(macos): preserve lazy Doctor result and literal proof filters * refactor(cli): extract Doctor startup admission * fix(e2e): accept settled modern Gateway readiness * fix(macos): localize Gateway recovery ownership errors * test(e2e): align fixtures with modern Gateway readiness * fix(macos): align recovery app-host test ownership * fix(i18n): leave native generated locales to refresh owner * test(macos): seed missing plugin peer for recovery proof * fix(state): restore database reader typecheck Complete the engine-neutral handle cutover for the pending approval and due-approval readers. Keep compressed transcript navigation queries explicitly SQLite-only rather than inheriting the engine-neutral cache default. Fixes the three core TypeScript errors introduced by 1edc42c. Core typecheck, 39 focused transcript/approval tests, targeted lint and format pass. Independent review found no P0/P1 issues. Co-authored-by: steipete <[email protected]> (cherry picked from commit 920ab44) * test(macos): expose recovery wait diagnostics and repair CI fixtures * test(macos): match actual accessibility text values in recovery proof * fix(macos): read checkpointed native WAL state during recovery * fix(macos): preserve Gateway recovery failure diagnostics * test(macos): type recovery diagnostic cases before macro expansion * test(macos): expose unexpected recovery refusal diagnostics * fix(macos): defer persistence during owned recovery * test(macos): keep bundled recovery setup in its app profile * fix(macos): recognize healthy protected bundled service identity * test(android): drain speech queue before Wear abort assertion (#172252) --------- Co-authored-by: steipete <[email protected]> (cherry picked from commit 98e49a9) Backport note: release/2026.10.5 lacks main's #167459 receipt-checkpoint CAS store (completeCoreRepair(receipt:owner:), persistCheckpoint) and the PostUpdate currentBundledRuntimeIsReady helper, so this is a semantic port. PostUpdate keeps the release's guarded markGatewayUpdateIncomplete and settles bundled preparation through the release's versioned completeCoreRepair(currentVersion:owner:) for the dispatched receipt's version; main's matchesBundledRuntime readiness hunk is dropped because the release has no such caller (the shared matcher still serves service custody and runtime-pin support). The bundled recovery test adds `try` for the release's throwing recordCoreUpdateDispatch. Post-install Doctor result IPC tests keep the release's full case table (no deferredInspectionCheckIds) and run each case over file and stdout. The e2e readiness table drops main's "http server listening" row because the release's ready-log pattern does not include that marker. Release has no @openclaw/proc-safe dependency, so scripts/test-macos-native.mts checks retired test Gateway PIDs with a local ESRCH probe instead of readProcessIdentity. CI workflow, docs, native SQLite VFS, Doctor stdout bridge, and hosting-change sources apply unchanged; the release's custody/admission, heap, backup-warning and service-ownership repairs are untouched.
…nclaw#171508) * fix(macos): join Doctor repair before completing bundled recovery * fix(macos): retain service environment during bundled recovery * fix(macos): retain Doctor child custody during bundled recovery * test(macos): prove bundled recovery in an app host * test(macos): require owned stop before recovery fixtures * test(macos): drain recovery before restoring fixture state * test(macos): validate ordinary bundled recovery and relaunch in CI * fix(macos): preserve lazy Doctor result and literal proof filters * refactor(cli): extract Doctor startup admission * fix(e2e): accept settled modern Gateway readiness * fix(macos): localize Gateway recovery ownership errors * test(e2e): align fixtures with modern Gateway readiness * fix(macos): align recovery app-host test ownership * fix(i18n): leave native generated locales to refresh owner * test(macos): seed missing plugin peer for recovery proof * fix(state): restore database reader typecheck Complete the engine-neutral handle cutover for the pending approval and due-approval readers. Keep compressed transcript navigation queries explicitly SQLite-only rather than inheriting the engine-neutral cache default. Fixes the three core TypeScript errors introduced by 7c86fca. Core typecheck, 39 focused transcript/approval tests, targeted lint and format pass. Independent review found no P0/P1 issues. Co-authored-by: steipete <[email protected]> (cherry picked from commit e2e8fda) * test(macos): expose recovery wait diagnostics and repair CI fixtures * test(macos): match actual accessibility text values in recovery proof * fix(macos): read checkpointed native WAL state during recovery * fix(macos): preserve Gateway recovery failure diagnostics * test(macos): type recovery diagnostic cases before macro expansion * test(macos): expose unexpected recovery refusal diagnostics * fix(macos): defer persistence during owned recovery * test(macos): keep bundled recovery setup in its app profile * fix(macos): recognize healthy protected bundled service identity * test(android): drain speech queue before Wear abort assertion (openclaw#172252) --------- Co-authored-by: steipete <[email protected]>
Wear speech stopping now runs on a background queue. The abort flow test clicks Abort and immediately checks the TTS shadow, so it can fail before that queue processes the stop. Main CI run 38581484814 failed this assertion at line 1970; the native recovery PR encountered the same unchanged fixture failure.
Drain the fixture’s existing UI and speech queues after the click. The abort RPC gate remains unresolved, so the assertion still proves that playback stops before the RPC outcome. Preserve the no-op, failed, confirmed, foreign-run, and subsequent-reply assertions.
Validation:
git diff --checkpassed.