Repository navigation
fix(android): improve Wear thread follow behavior - #111459
Conversation
…ad-follow-stacked
…ad-follow-stacked
|
Codex review: needs real behavior proof before merge. Reviewed July 19, 2026, 1:37 PM ET / 17:37 UTC. Summary PR surface: Other +289. Total +289 across 3 files. Reproducibility: no. high-confidence current-main reproduction is established here; the source and focused tests identify the Wear follow-state path, but the reported device behavior still requires current-head physical verification. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Keep one bounded Wear follow-state implementation, then attach a redacted physical-watch recording from commit 87422bf that shows streaming follow, manual back-scroll preservation, New-content recovery, and the thinking entry. Do we have a high-confidence way to reproduce the issue? No high-confidence current-main reproduction is established here; the source and focused tests identify the Wear follow-state path, but the reported device behavior still requires current-head physical verification. Is this the best way to solve the issue? Unclear; the explicit viewport/content-revision state machine is a plausible bounded fix, but its user-visible behavior must be confirmed on the lifecycle-stabilized current head before calling it the best solution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 83303f1ba874. Label changesLabel justifications:
Evidence reviewedPR surface: Other +289. Total +289 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (4 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: JARVIS-Glasses <[email protected]>
|
Merged via squash.
|
* improve(android): move Wear agent, session, and model pickers to Home * fix(android): improve Wear thread follow behavior * fix(android): stabilize Wear thread follow lifecycle * fix(android): keep streamed Wear tail visible Co-authored-by: JARVIS-Glasses <[email protected]> --------- Co-authored-by: Colin <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
* improve(android): move Wear agent, session, and model pickers to Home * fix(android): improve Wear thread follow behavior * fix(android): stabilize Wear thread follow lifecycle * fix(android): keep streamed Wear tail visible Co-authored-by: JARVIS-Glasses <[email protected]> --------- Co-authored-by: Colin <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
[AI-assisted]
What Problem This Solves
The Wear OS Live Thread did not reliably keep new or growing streamed responses visible. Users reading older content could also lose their position when fresh events arrived, and the active Realtime Thinking state was not represented in the thread.
Why This Change Was Made
Adds explicit thread-follow state based on content revisions and the current list viewport. The thread follows new and growing content while the user remains at the latest item, preserves intentional backward scrolling, exposes a compact New-content action for unseen events, and renders the existing Realtime Thinking state as a compact thread entry.
Maintainer review found one more edge case: scrolling to the latest bubble centers that item, so the newest text can still be below the viewport when a streamed response grows taller than the Watch screen. The final implementation follows a trailing list anchor instead, which keeps the tail visible without guessing a size-dependent offset.
User Impact
Streaming replies remain visible without manual scrolling during normal use. Users can scroll back and continue reading without being pulled to the bottom, then return to the newest content with one tap. Existing message bubbles, Type and microphone actions, Realtime audio, session routing, and the Phone-owned Gateway security boundary remain unchanged.
Evidence
Current hosted head:
87422bf0ae6da0c16de37ee349c1eccfaabbd508.641924997400(inspectable, operator-attested) — The linked capture is viewable and shows streamed text growth, preserved older content, the New-content action, return to the completed answer, and Realtime Thinking on a physical SM-R945F Watch. It also exposed the premature New-content behavior that motivated the later lifecycle fix. The installed APK for that older proof build had SHA-2562AA27C9EA87866065EA17590E730E5248BB5DEEC622050B0EF78E6CEF286B2DC.:wear:testDebugUnitTest --rerun-tasks --tests ai.openclaw.wear.MainActivityTestpassed 7/7 focused tests with 0 failures, errors, or skips. Coverage includes normal follow, manual back-scroll, New-content recovery, realtime reset, Thinking, and the trailing anchor after the latest content.:wear:ktlintCheck :wear:lintDebug :wear:assembleDebug— passed on the same Testbox tree.pnpm native:i18n:check— exited 0 withchanged=false; repository-wide duplicate/source-equality diagnostics were advisory.git diff --check— passed.maintouch the three changed Wear files.Remaining Proof Risk
There is no physical Watch attached to the maintainer environment, so the linked device capture predates the final lifecycle and trailing-anchor commits. It is regression evidence, not a claim of current-head device proof. Maintainer review accepts that bounded residual risk based on direct inspection of the AndroidX Wear Compose 1.6.2 scroll contract, the trailing-anchor correction, exact published-tree verification, the focused tests, and successful Wear lint/build proof.
Thanks @IWhatsskill for the Wear implementation and device evidence.
Thread.Tool.call.follow.PR.mp4