Repository navigation
fix(android): drain Wear fixtures before speech shutdown - #172452
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Codex Review SummaryThis 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. |
Drain the active UI and speech queues before disposing the activity, then flush only main-thread cleanup. Robolectric can mark the speech Looper shutdown while its HandlerThread is still alive, so the post-disposal all-Looper drain races teardown. Preserve the asynchronous TTS lifecycle from #172147.
steipete
force-pushed
the
solid2/hf-android-wear
branch
from
October 14, 2026 19:20
179b5d4 to
51012f7
Compare
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 15, 2026
…2452) Drain the active UI and speech queues before disposing the activity, then flush only main-thread cleanup. Robolectric can mark the speech Looper shutdown while its HandlerThread is still alive, so the post-disposal all-Looper drain races teardown. Preserve the asynchronous TTS lifecycle from openclaw#172147.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes intermittent Android Wear CI failures when a chat-flow fixture drains the speech Looper after disposing its activity.
Related: #172147. Scheduled main run 38599255839, android-test-wear failed in
WearChatEventFlowTest.repeatedAbortPreservesAnAcceptedSessionWideCancellation(1 of 348 tests). Its XML stack isFlow.close → Flow.idle → ShadowPausedLooper.idle → LooperControlService.executeControlTask; the Looper control service was already shut down while the thread still appeared alive.User Impact
No production behavior changes. The asynchronous TTS lifecycle that prevents Wear UI freezes remains intact.
Why This Change Was Made
Drain UI/speech work before activity disposal. After disposal, drain only the main Looper for UI cleanup instead of submitting control work to an exiting speech Looper. Keep the active test's two-way drain and all assertions unchanged.
Evidence
179b5d4bc211)51012f799ef1; Wear flow class: 103 passed, 25.014s; original failing case passed, 1.214sTest-only diff: 4 lines added, 1 removed; affected file 3,133 → 3,136 lines. No rendered UI or startup bundle change, so screenshots and UI startup measurements do not apply. No remote test lease used.