Repository navigation
feat(android): add Wear OS companion - #109433
Conversation
Co-authored-by: Sebastian Schubotz <[email protected]> Co-authored-by: IWhatsskill <[email protected]>
3a4f013 to
13cf036
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1ba95dd55c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -17,4 +17,5 @@ dependencyResolutionManagement { | |||
| rootProject.name = "OpenClawNodeAndroid" | |||
| include(":app") | |||
| include(":benchmark") | |||
| include(":wear") | |||
There was a problem hiding this comment.
Wire Wear into root Android scripts
Adding :wear here makes the Wear app part of the Android project, but the repo-level scripts in package.json still omit it: android:test only runs :app:testPlayDebugUnitTest :wear-shared:testDebugUnitTest, and android:assemble/android:lint/android:lint:android similarly skip :wear. When maintainers use those standard pnpm android:* commands for local validation, Wear code can be left uncompiled, unlinted, and untested even though the module is now in the build; please include the :wear assemble/lint/ktlint/test tasks or add explicit Wear scripts.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 63cd54dbce
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| }, | ||
| { check_name: "android-test-third-party", task: "test-third-party" }, | ||
| ...(!useCompatibleAndroidCi | ||
| ? [{ check_name: "android-test-wear", task: "test-wear" }] |
There was a problem hiding this comment.
Gate Wear lanes on the v3 Android CI contract
When a workflow_dispatch targets an older release/release-candidate checkout that already has the previous android-ci-contract-v2 marker, supportsCurrentAndroidCi at .github/workflows/ci.yml:501 still makes useCompatibleAndroidCi false. The parent tree of this change has that v2 marker but apps/android/settings.gradle.kts only includes :app, :benchmark, and :wear-shared, so this newly added matrix entry runs test-wear and the case at .github/workflows/ci.yml:2987 invokes :wear:testDebugUnitTest, which those targets cannot resolve. Please bump the capability check to v3 or otherwise detect the Wear module before adding these lanes.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 848b9dd0e5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| check(openClawAndroidBuildNumber in 1..49) { | ||
| "Android build number must be 01 through 49; Wear reserves 51 through 99." | ||
| } |
There was a problem hiding this comment.
Reject reserved Wear version codes before Gradle
With this new 01-49 check, any pinned phone versionCode ending in 51-99 now fails every Wear Gradle build, but the repo version validators still accept that range (scripts/lib/android-version.ts and scripts/mobile-release-ref.ts still validate 01 through 99). A maintainer can run pnpm android:version:pin -- --version 2026.6.2 --version-code 2026060251 and pass version sync/preflight checks, only to have release archive fail in Gradle; please align the pin/ref validators and tests with the new phone-only 01-49 contract.
Useful? React with 👍 / 👎.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5f5afa3e5d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| phone_artifact_path, wear_artifact_path = artifact_paths | ||
| upload_play_builds_atomically!( | ||
| phone_artifact_path: phone_artifact_path, | ||
| wear_artifact_path: wear_artifact_path, | ||
| version_metadata: version_metadata, |
There was a problem hiding this comment.
Add Wear screenshots before uploading Wear builds
When this new path uploads the Wear AAB, the release lane still only validates/generated phone screenshots: scripts/android-screenshots.sh writes images/phoneScreenshots/, and the checked-in metadata has no wearScreenshots directory. For a first Wear release or any listing without manually maintained Wear assets, Google Play's Wear OS distribution requirement for at least one Wear OS screenshot leaves the Wear track blocked after this upload flow; please generate or require wearScreenshots before calling the atomic phone+Wear upload.
Useful? React with 👍 / 👎.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
💡 Codex Review
For users whose Gateway is configured with the supported global session scope, this filters out the only main chat row: sessions.list drops key == "global" unless includeGlobal is true in src/gateway/session-utils.ts, while the Android phone session picker explicitly requests global rows in apps/android/app/src/main/java/ai/openclaw/app/chat/ChatController.kt. With false here, the Wear app renders an empty session list and cannot open or send to the same global conversation that the phone exposes.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 821c8b4358
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| requester | ||
| .request( | ||
| WearRpcMethod.SessionsList, | ||
| buildJsonObject { put("limit", 30) }, |
There was a problem hiding this comment.
Include global sessions in the Wear picker
When a user's current/default transcript is still stored under the global session, this new Wear session list cannot surface it: the phone proxy's sessions.list path hard-codes includeGlobal=false, and the gateway filter drops key global unless that flag is true (src/gateway/session-utils.ts:2522), while the Android phone picker opts into it (apps/android/app/src/main/java/ai/openclaw/app/chat/ChatController.kt:2002). In that scenario the watch can show no recent sessions and offers no way to open or reply to the main conversation, so the Wear session request/proxy should match the phone list or explicitly map the global session.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0d53c302a3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } catch (_: CancellationException) { | ||
| currentCoroutineContext().ensureActive() | ||
| throw WearProxyException("phone_unavailable", "Paired phone is unavailable") | ||
| } catch (_: Throwable) { | ||
| throw WearProxyException("phone_unavailable", "Paired phone is unavailable") |
There was a problem hiding this comment.
Invalidate stale preferred phone after send failures
When a cached preferred node becomes stale and sendMessage fails here (for example, the phone disconnects or its node ID changes before a CAPABILITY_CHANGED callback is delivered), the request is reported as phone_unavailable but preferredPhoneKnown/preferredPhoneNodeId remain unchanged. The next refresh or notification-reply retry goes through resolvePreferredPhoneNode(), reuses that same cached node instead of running capability discovery, and repeats the failing send, so the Wear app can stay offline until a process restart or later capability event; clear the cached preferred node when the failed send was to that cached node.
Useful? React with 👍 / 👎.
|
Merged via squash.
|
* feat(android): add Wear OS companion Co-authored-by: Sebastian Schubotz <[email protected]> Co-authored-by: IWhatsskill <[email protected]> * style(android): format Wear release gate test * test(android): cover Wear release CI contracts * test(android): import Wear JSON fixture type * fix(android): harden Wear proxy event actor * test(android): stabilize Wear proxy actor tests * test(android): isolate Wear proxy actor lifecycles * test(android): own Wear actor dispatchers * test(android): use real time for Wear actor tests * test(android): own Wear actors in test scope * test(android): stop Wear actors explicitly * test(android): drain Wear actor cancellation * test(android): isolate Wear actors from test scheduler * test(android): inject Wear test clock --------- Co-authored-by: IWhatsskill <[email protected]>
* feat(android): add Wear OS companion Co-authored-by: Sebastian Schubotz <[email protected]> Co-authored-by: IWhatsskill <[email protected]> * style(android): format Wear release gate test * test(android): cover Wear release CI contracts * test(android): import Wear JSON fixture type * fix(android): harden Wear proxy event actor * test(android): stabilize Wear proxy actor tests * test(android): isolate Wear proxy actor lifecycles * test(android): own Wear actor dispatchers * test(android): use real time for Wear actor tests * test(android): own Wear actors in test scope * test(android): stop Wear actors explicitly * test(android): drain Wear actor cancellation * test(android): isolate Wear actors from test scheduler * test(android): inject Wear test clock --------- Co-authored-by: IWhatsskill <[email protected]>
#173117) * refactor(apps): consolidate Android and Linux lifecycle paths Share transcript-content serialization without changing persisted JSON bytes, and move identical camera/chat JPEG resizing and recycling into one owner. Stop re-encoding an oversized JPEG when neither quality nor size can change. Reuse the first wide-area DNS SRV response instead of requesting it again for an address already present in its additional records. Use the discovery receiver handle as its liveness authority and inline the single-caller logind connection wrapper. Best-effort tradeoffs accepted - Swarm pagination no longer rescans a moving roster four times. The feature's #113850 tests synthesize moving offsets, not a human actual-use incident; skipped workers refresh on the next session event. Strictly advancing offsets also make a separate seen-offset set unnecessary. - Synchronous swarm projection now runs inside its existing lock rather than publishing through a second snapshot/revalidation path (#113850). There is no asynchronous gap to defend, and async response ownership checks remain. - Wear startup uses the active connection slot, not a third promotion map and claim-order counters. #116593/#116592 describe a source/emulator timing audit, not an independent human incident. Production requests are actor-serialized; reconnect exactly during prior-owner retirement may keep the reserved channel instead of the newest one. Restarting Talk recovers. Normal reconnect, audio owner settlement, physical generations and FIFO writes remain. - Wear peer registrations no longer carry generations (#109341/#109433). The removed regression forced a deferred send failure after rediscovery; a stale failure can now evict that peer until discovery or its next request. - Read-only Wear Pulse polling no longer has a second request generation or synchronous duplicate route checks (#122123 initial feature/synthetic tests). One canceled poller owns the work; phone/agent/session/route checks remain. - Discovery no longer has an independent alive flag or cleanup generation (#108115 synthetic adversarial review). Cleanup finishes before the receiver handle becomes finished, so a replacement cannot lose its snapshot. No signing, permission, dependency, schema, durability or Gateway protocol changes. The standalone session-memory backend is untouched. Net production reduction: 214 lines, excluding tests and 12 removed inline Rust test lines. The scope pass and two fresh independent passes found no further sound bulk cuts. Below-500 branch handoff for coordinator bundling. Baseline regression proof: the original JPEG algorithm encodes the same input 42 times; original DNS discovery makes PTR/SRV/SRV/TXT requests despite resolving the expected public endpoint. Both new regressions failed on those exact counts. Independent final review: scoped-clean, no actionable P0-P2 findings. Runtime and Madge cycles: zero. Lint-suppressions: 3/3 passed. Check-changed repository invariants and native schema gate passed; corrected Android fixture formatting passed its focused ktlint replay. Tauri all-targets build/tests passed on macOS: 325 unit and 7 native lifecycle tests. Linux-only build/logind proof remains for coordinator CI: the shared Testbox allocation queued and was stopped without executing commands; no active lease. No release gate dispatched, Apple target touched or hosted sandbox test run. Android proof: 229 focused phone tests passed across the complete batch and repaired discovery-class replay, plus 7 Wear lifecycle tests. Phone Play, third-party and Wear debug APK builds passed. Full discovery replay passed 16 tests plus 2 DNS TXT tests, with no errors, failures or skips. The initial full-class failure was a fixture singleton leak, fixed with a shadow-owned factory/reset; endpoint and packet assertions remain unchanged. * refactor(ios): share manual gateway security rows Use one rendering owner for the identical Settings and onboarding TLS picker and helper text. Preserve each original binding setter, transport policy, forced-TLS disabling, typography and row order. Keep security behavior tests; consolidate duplicate typography checks at the shared rendering owner. Regenerate the shrinking native source inventory: six label sites become three with the same IDs and strings. No translation memory or public contract changes. Independent P0-P2 review is scoped-clean. SwiftFormat and canonical source lint pass. Native platform builds and focused tests remain in progress. Best-effort tradeoffs accepted: none; rendering consolidation only. * refactor(apple): share presentation rows and remove duplicate task bookkeeping Use cancellation already owned by Quick Chat reads and hover-card avatar/progress tasks instead of a second request ID or generation comparison. Keep queued subscription generations, route checks and all write-patch settlement. Share media-unavailable rendering and notification priority translation while preserving typography, strings, modifier order, sound policy and authorization. Trust the process-lifetime LiveActivity singleton and the onboarding Candidate already passed by its owning ForEach. The exhaustive hydration switch still rejects idle and disconnected states; only its duplicate early guard is removed. Best-effort tradeoffs accepted: none added by this equivalent-owner batch. The branch's ReplayKit SDK duplicate-completion and seeded-runtime re-read tradeoffs remain documented in the initial consolidation commit. Source lint, formatting, parse, localization verification and lint-suppressions pass. Independent P0-P2 review's hydration finding is declined because the retained exhaustive switch returns false for both cited states. Native builds and focused tests remain in progress; app-hosted macOS execution is excluded. * refactor(apple): consolidate chat transport and capture lifecycle Share common chat RPC application logic while retaining platform route authority and non-retrying macOS compaction. Replace ReplayKit's startup phase machine with awaited start/stop settlement, share speech-resource teardown, and remove redundant identity/observer bookkeeping and DEBUG forwarding fixtures. Best-effort tradeoffs accepted: - ReplayKit duplicate startup completions are unsupported. The introducing lifecycle PR #103072 cites synthetic coverage, not a human duplicate-callback incident; a violated SDK single-completion contract now fails visibly. - A same-user runtime mutation after seed validation is no longer re-read. Feature PR #161709 cites fixture proof, not a report requiring that duplicate validation; the next normal resolution validates concrete state again. No signing, entitlement, bundle ID, permission, protocol, schema, or dependency changes. Phase E session memory is untouched. Native build/test verification is still running; app-hosted macOS execution requires a disposable OS environment. * refactor(wear): retain pulse polling lifecycle guards Drop the wave-5 pulse polling simplification after independent review raised uncertainty around late non-cancellation errors. Restore the production owner and lifecycle test byte-for-byte to the bundle base; keep the rest of the Android/Linux and Apple bundle unchanged. * refactor(apps): retain established Wear and screenshot paths Drop Wear channel claim cleanup after review identified stale claims displacing newer active Talk owners. Restore its complete lifecycle regressions. Drop ChatProTab and OpenClawBrand cleanup after the hosted iPad screenshot timeout did not reproduce in serial exact head/base replays; no claim of a proven timeout repair. Keep independent Android DNS and JPEG performance fixes and the remaining y18/y19 native-app cleanup. * refactor(apps): drop Linux lifecycle cleanup from bundle Apply the coordinator drop-hunks rule after the Linux onboarding Review permissions test reached Connection Settings instead of Native permissions. Routing owners are unchanged; without conclusive Linux replay, restore all y18 Linux runtime files to origin/main ace1908. Preserve Android and Apple cleanup, including the DNS and JPEG fixes. Park the original Linux hunks separately for native investigation; no timeout repair or inherited-red attribution claimed. * refactor(apps): drop shared chat RPC consolidation Restore the existing iOS/macOS adapters, shared extension and tests after the exact-head shared Periphery intersection reported the moved pager and metadata identities unused in both consumers. Apply the coordinator drop-hunks rule rather than suppressing the scanner or rerunning CI for green. Preserve route/server-lease authority and macOS no-retry compaction. * refactor(android): drop chat cleanup after native fixture failure Apply the coordinator changed-path drop rule after ChatCompletedWorkLayoutTest.completedWorkSummaryKeepsEarlierToolFailureVisible timed out waiting for refreshed tool-error history in third-party CI. Restore chat models, cache, controller, swarm and associated test deltas as one conservative unit. No causal timing repair or inherited-main attribution is claimed. Keep both Android DNS and JPEG fixes and retained Apple cleanup.
openclaw#173117) * refactor(apps): consolidate Android and Linux lifecycle paths Share transcript-content serialization without changing persisted JSON bytes, and move identical camera/chat JPEG resizing and recycling into one owner. Stop re-encoding an oversized JPEG when neither quality nor size can change. Reuse the first wide-area DNS SRV response instead of requesting it again for an address already present in its additional records. Use the discovery receiver handle as its liveness authority and inline the single-caller logind connection wrapper. Best-effort tradeoffs accepted - Swarm pagination no longer rescans a moving roster four times. The feature's openclaw#113850 tests synthesize moving offsets, not a human actual-use incident; skipped workers refresh on the next session event. Strictly advancing offsets also make a separate seen-offset set unnecessary. - Synchronous swarm projection now runs inside its existing lock rather than publishing through a second snapshot/revalidation path (openclaw#113850). There is no asynchronous gap to defend, and async response ownership checks remain. - Wear startup uses the active connection slot, not a third promotion map and claim-order counters. openclaw#116593/openclaw#116592 describe a source/emulator timing audit, not an independent human incident. Production requests are actor-serialized; reconnect exactly during prior-owner retirement may keep the reserved channel instead of the newest one. Restarting Talk recovers. Normal reconnect, audio owner settlement, physical generations and FIFO writes remain. - Wear peer registrations no longer carry generations (openclaw#109341/openclaw#109433). The removed regression forced a deferred send failure after rediscovery; a stale failure can now evict that peer until discovery or its next request. - Read-only Wear Pulse polling no longer has a second request generation or synchronous duplicate route checks (openclaw#122123 initial feature/synthetic tests). One canceled poller owns the work; phone/agent/session/route checks remain. - Discovery no longer has an independent alive flag or cleanup generation (openclaw#108115 synthetic adversarial review). Cleanup finishes before the receiver handle becomes finished, so a replacement cannot lose its snapshot. No signing, permission, dependency, schema, durability or Gateway protocol changes. The standalone session-memory backend is untouched. Net production reduction: 214 lines, excluding tests and 12 removed inline Rust test lines. The scope pass and two fresh independent passes found no further sound bulk cuts. Below-500 branch handoff for coordinator bundling. Baseline regression proof: the original JPEG algorithm encodes the same input 42 times; original DNS discovery makes PTR/SRV/SRV/TXT requests despite resolving the expected public endpoint. Both new regressions failed on those exact counts. Independent final review: scoped-clean, no actionable P0-P2 findings. Runtime and Madge cycles: zero. Lint-suppressions: 3/3 passed. Check-changed repository invariants and native schema gate passed; corrected Android fixture formatting passed its focused ktlint replay. Tauri all-targets build/tests passed on macOS: 325 unit and 7 native lifecycle tests. Linux-only build/logind proof remains for coordinator CI: the shared Testbox allocation queued and was stopped without executing commands; no active lease. No release gate dispatched, Apple target touched or hosted sandbox test run. Android proof: 229 focused phone tests passed across the complete batch and repaired discovery-class replay, plus 7 Wear lifecycle tests. Phone Play, third-party and Wear debug APK builds passed. Full discovery replay passed 16 tests plus 2 DNS TXT tests, with no errors, failures or skips. The initial full-class failure was a fixture singleton leak, fixed with a shadow-owned factory/reset; endpoint and packet assertions remain unchanged. * refactor(ios): share manual gateway security rows Use one rendering owner for the identical Settings and onboarding TLS picker and helper text. Preserve each original binding setter, transport policy, forced-TLS disabling, typography and row order. Keep security behavior tests; consolidate duplicate typography checks at the shared rendering owner. Regenerate the shrinking native source inventory: six label sites become three with the same IDs and strings. No translation memory or public contract changes. Independent P0-P2 review is scoped-clean. SwiftFormat and canonical source lint pass. Native platform builds and focused tests remain in progress. Best-effort tradeoffs accepted: none; rendering consolidation only. * refactor(apple): share presentation rows and remove duplicate task bookkeeping Use cancellation already owned by Quick Chat reads and hover-card avatar/progress tasks instead of a second request ID or generation comparison. Keep queued subscription generations, route checks and all write-patch settlement. Share media-unavailable rendering and notification priority translation while preserving typography, strings, modifier order, sound policy and authorization. Trust the process-lifetime LiveActivity singleton and the onboarding Candidate already passed by its owning ForEach. The exhaustive hydration switch still rejects idle and disconnected states; only its duplicate early guard is removed. Best-effort tradeoffs accepted: none added by this equivalent-owner batch. The branch's ReplayKit SDK duplicate-completion and seeded-runtime re-read tradeoffs remain documented in the initial consolidation commit. Source lint, formatting, parse, localization verification and lint-suppressions pass. Independent P0-P2 review's hydration finding is declined because the retained exhaustive switch returns false for both cited states. Native builds and focused tests remain in progress; app-hosted macOS execution is excluded. * refactor(apple): consolidate chat transport and capture lifecycle Share common chat RPC application logic while retaining platform route authority and non-retrying macOS compaction. Replace ReplayKit's startup phase machine with awaited start/stop settlement, share speech-resource teardown, and remove redundant identity/observer bookkeeping and DEBUG forwarding fixtures. Best-effort tradeoffs accepted: - ReplayKit duplicate startup completions are unsupported. The introducing lifecycle PR openclaw#103072 cites synthetic coverage, not a human duplicate-callback incident; a violated SDK single-completion contract now fails visibly. - A same-user runtime mutation after seed validation is no longer re-read. Feature PR openclaw#161709 cites fixture proof, not a report requiring that duplicate validation; the next normal resolution validates concrete state again. No signing, entitlement, bundle ID, permission, protocol, schema, or dependency changes. Phase E session memory is untouched. Native build/test verification is still running; app-hosted macOS execution requires a disposable OS environment. * refactor(wear): retain pulse polling lifecycle guards Drop the wave-5 pulse polling simplification after independent review raised uncertainty around late non-cancellation errors. Restore the production owner and lifecycle test byte-for-byte to the bundle base; keep the rest of the Android/Linux and Apple bundle unchanged. * refactor(apps): retain established Wear and screenshot paths Drop Wear channel claim cleanup after review identified stale claims displacing newer active Talk owners. Restore its complete lifecycle regressions. Drop ChatProTab and OpenClawBrand cleanup after the hosted iPad screenshot timeout did not reproduce in serial exact head/base replays; no claim of a proven timeout repair. Keep independent Android DNS and JPEG performance fixes and the remaining y18/y19 native-app cleanup. * refactor(apps): drop Linux lifecycle cleanup from bundle Apply the coordinator drop-hunks rule after the Linux onboarding Review permissions test reached Connection Settings instead of Native permissions. Routing owners are unchanged; without conclusive Linux replay, restore all y18 Linux runtime files to origin/main c975ae3. Preserve Android and Apple cleanup, including the DNS and JPEG fixes. Park the original Linux hunks separately for native investigation; no timeout repair or inherited-red attribution claimed. * refactor(apps): drop shared chat RPC consolidation Restore the existing iOS/macOS adapters, shared extension and tests after the exact-head shared Periphery intersection reported the moved pager and metadata identities unused in both consumers. Apply the coordinator drop-hunks rule rather than suppressing the scanner or rerunning CI for green. Preserve route/server-lease authority and macOS no-retry compaction. * refactor(android): drop chat cleanup after native fixture failure Apply the coordinator changed-path drop rule after ChatCompletedWorkLayoutTest.completedWorkSummaryKeepsEarlierToolFailureVisible timed out waiting for refreshed tool-error history in third-party CI. Restore chat models, cache, controller, swarm and associated test deltas as one conservative unit. No causal timing repair or inherited-main attribution is claimed. Keep both Android DNS and JPEG fixes and retained Apple cleanup.
Closes #108781.
Supersedes #108803 and #108997 with one reviewed, current-main implementation. Thanks @sibbl and @IWhatsskill for the original Wear work and physical-device proof.
[AI-assisted]
What Problem This Solves
OpenClaw's Android app owns the authenticated Gateway connection, but users have no safe wrist surface for status, conversations, voice or typed prompts, sessions, agents, reply playback, and quick access from a tile.
Why This Change Was Made
This adds a Wear OS companion while keeping the paired Android phone as the sole Gateway transport and credential owner. A bounded, versioned Data Layer protocol exposes only allowlisted status, session, history, send, and abort operations; the watch stores no Gateway token, password, address, or direct identity.
The phone bridge serializes requests and projected chat events through one actor, preserves terminal events across overflow, discovers paired watches for background replies, and carries exact event watermarks so the watch can reconcile gaps from canonical history.
User Impact
Users can open OpenClaw on Wear OS, inspect phone and Gateway status, read the active conversation, send typed or spoken prompts, switch sessions, inspect agents, abort a run, hear replies, and open the app from a tile. The Wear app follows phone-owned authentication and supports release-signed APK/AAB packaging with a distinct Play-safe version code.
Evidence
Contributor physical-device proof of the source UI and security boundary:
Physical-watch walkthrough: https://github.com/user-attachments/assets/1faa6be3-fdc0-4f18-8f85-806bc95fb298
Voice and TTS proof: https://github.com/user-attachments/assets/2bc1fbd0-e738-4e72-ad5f-e98adb557c69