Repository navigation
feat(android): add staged Wear status bridge - #108803
IWhatsskill wants to merge 7 commits into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 16, 2026, 10:45 AM ET / 14:45 UTC. Summary PR surface: Tests +22, Docs +7, Config +24, Other +1013. Total +1066 across 36 files. Reproducibility: not applicable. as a bug reproduction: this PR introduces a new Wear OS capability. Its intended behavior is directly demonstrated on a physical phone/watch pair and supported by focused contract tests. Review metrics: 2 noteworthy metrics.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: If the Android owner sponsors Wear OS, land the status-only phone-first bridge as phase one, explicitly define its release and ownership path, and keep the broader interaction work in #108997 gated behind a separate review. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: this PR introduces a new Wear OS capability. Its intended behavior is directly demonstrated on a physical phone/watch pair and supported by focused contract tests. Is this the best way to solve the issue? Yes for implementation shape: the status-only, phone-first slice is narrower and safer than the earlier broad Wear proposal and relies on the platform's same-package/signature transport boundary. Product acceptance and release ownership still require an explicit maintainer decision. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a0d6cd724ab6. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Tests +22, Docs +7, Config +24, Other +1013. Total +1066 across 36 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
|
|
Superseded by #109433, which landed the complete phone-proxy Wear OS companion in Thank you @IWhatsskill for the staged bridge work and device proof. Your contribution is credited in the landed Android changelog. |
[AI-assisted]
What Problem This Solves
Related: #47604
OpenClaw does not currently have a small, reviewable Wear OS vertical slice that establishes the intended phone-first product and security boundary. The earlier Wear proposal combined transport, phone proxying, watch UI, tiles, notifications, and authentication-sensitive work in one large change.
Why This Change Was Made
This change limits the first Wear capability to status: the watch asks the paired OpenClaw Android app for current Gateway connectivity and displays the result. The shared request/response contract is versioned and size-bounded, and the phone responds only from an already-running
NodeRuntime; it does not start the runtime, create another identity, or expose credentials.The watch uses Wear Data Layer capability discovery and
MessageClient.sendRequest. Payloads exclude tokens, passwords, Gateway addresses or names, device IDs, sessions, and chat content. Chat, tiles, complications, notifications, voice, direct Gateway authentication, and release wiring remain out of scope.User Impact
With matching phone and Wear builds installed, users can open OpenClaw on the watch and see whether the paired phone is reachable, whether its existing Gateway session is connected, or whether the phone/watch builds are incompatible. The screen also supports manual refresh.
The watch does not authenticate directly to the Gateway and stores no Gateway credentials.
Evidence
Note
Validation
./gradlew :wear-shared:test— 3 shared-contract tests passed../gradlew :wear:testDebugUnitTest— 3 watch-client mapping tests passed../gradlew :app:testPlayDebugUnitTest— phone tests passed../gradlew :app:testThirdPartyDebugUnitTest— third-party variant tests passed../gradlew :wear-shared:ktlintCheck :wear:ktlintCheck :app:ktlintCheck— passed../gradlew :wear:assembleDebug :wear:lintDebug— passed../gradlew :app:assemblePlayDebug :app:lintPlayDebug— passed.pnpm native:i18n:check— passed.pnpm exec vitest run test/scripts/native-app-i18n.test.ts test/scripts/ci-workflow-guards.test.ts— 76 tests passed.ai.openclaw.app, version2026.7.2, and the same signing certificate, with distinct Play version codes: phone2026070201, Wear260702011./openclaw/v1/status.Tip
Real Behavior Proof
Physical Android phone and Wear OS watch behavior was verified with the matching proof APKs.
Phone readyandGateway connected.