Skip to content

feat(android): add Wear conversations, voice, agents, and sessions - #108997

Closed
IWhatsskill wants to merge 23 commits into
openclaw:mainfrom
IWhatsskill:feat/android-wear-conversations
Closed

IWhatsskill wants to merge 23 commits into
openclaw:mainfrom
IWhatsskill:feat/android-wear-conversations

Conversation

@IWhatsskill

@IWhatsskill IWhatsskill commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

[AI-assisted]

What Problem This Solves

OpenClaw's Android node keeps the authenticated Gateway connection on the phone, leaving Wear OS users without a safe wrist interface for the active conversation, voice prompts, sessions, available agents, and reply playback.

Why This Change Was Made

This change adds the OpenClaw Wear OS interaction surface while keeping the Android phone as the transport and security boundary. The branch now uses the shared WearProtocol introduced on current main by #108835 and implements only its allowlisted proxy.status, sessions.list, chat.history, chat.send, and chat.abort methods.

The paired phone proxies bounded snapshots and actions through its existing authenticated NodeRuntime. The watch receives no Gateway token, password, endpoint, direct identity, or raw session key. The previous duplicate status and conversation envelopes were removed.

User Impact

OpenClaw Wear OS provides four swipeable Chat, Agents, Sessions, and Controls pages. Users can submit prompts with Talk or Type, follow the active transcript and response state, switch sessions, inspect agents available on the paired phone, hear replies through watch TTS, enable automatic reply speech, and persist Dark or Light appearance.

The Wear artifact now has its own Play-safe version-code scheme, a signed AAB/APK release path, release metadata and certificate validation, Wear OS branding, module CI gates, and third-party license notices.

Evidence

Note

Validation

  • Current upstream main merged through 63b0cac9f0; pushed head is 31d678bd93.
  • ./gradlew :wear-shared:testDebugUnitTest :wear:testDebugUnitTest :app:testPlayDebugUnitTest :app:assemblePlayDebug :wear:assembleDebug :wear:lintDebug :wear-shared:lintDebug :app:ktlintCheck :wear:ktlintCheck :wear-shared:ktlintCheck — passed.
  • test/scripts/android-release-artifacts.test.ts — 14/14 tests passed.
  • Targeted Android CI workflow-contract guard — passed.
  • native:i18n:check — passed after synchronizing the moved Wear source IDs across the native inventory and all 21 locale artifacts without changing translation text.
  • :wear:bundleRelease and :wear:assembleRelease — passed locally with the standard Android debug key as a non-production proof identity.
  • Wear AAB verification — jar verified., not unsigned.
  • Phone and Wear use package ai.openclaw.app, versionName 2026.7.2, and the same local proof certificate 58e48afd…55a6d371.
  • Phone versionCode 2026070201; Wear versionCode 260702011.
  • Wear release APK manifest: ai.openclaw.app / 2026.7.2 / 260702011.
  • Windows APK validation starts apksigner.jar directly through Java without a shell boundary and accepts current scheme-prefixed certificate output.
  • git diff --check origin/main...HEAD — passed.
  • GitHub CI is running on pushed head 31d678bd93.

Tip

Real Behavior Proof

Physical Android device proof uses a paired Pixel phone and Samsung Galaxy Watch with the 480×480 Wear OS UI.

  • UI walkthrough: Chat, Agents, Sessions, Controls, Dark/Light switching, and return navigation are visible on the physical watch.
  • Conversation result: The Chat page shows the active session, submitted prompt, and returned agent response.
  • Security boundary: The paired phone owns Gateway authentication and transport; the watch uses Wear Data Layer only.
  • Persistence surface: Appearance and automatic reply-speech controls are exposed on the watch.
  • Exact-head install: Phone and watch proof APKs from pushed head 31d678bd93 are installed.
  • Microphone proof: A watch voice prompt is recognized and delivered to the active session.
  • TTS proof: The agent reply is played audibly through watch TTS.

The operator-attested physical proof completes the exact-head install, watch microphone recognition, prompt delivery, and audible TTS playback checks.

Chat, Talk, and TypeAgents view
OpenClaw Wear OS Chat page showing ready state, Talk and Type controls, and the active conversation OpenClaw Wear OS Agents page showing agents available through the paired phone

Complete physical-watch walkthrough — Chat, Agents, Sessions, Controls, and appearance settings:

openclaw-watch-full-ui-synced-20260716-141812.mp4

Exact-head Voice and TTS proof — watch microphone recognition, prompt delivery, and audible reply playback (operator-attested):

Wear.OS.STT.TTS.mp4

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: android App: android scripts Repository scripts size: XL labels Jul 16, 2026
@IWhatsskill
IWhatsskill marked this pull request as ready for review July 16, 2026 13:10
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Jul 16, 2026
@clawsweeper

clawsweeper Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 16, 2026, 9:54 PM ET / July 17, 2026, 01:54 UTC.

Summary
Adds a phone-proxied Wear OS companion with chat, voice input, reply speech, agent and session browsing, persisted watch preferences, CI coverage, and signed release-artifact support.

PR surface: Tests +41, Docs +21, Config +21, Other +2790. Total +2873 across 41 files.

Reproducibility: not applicable. This PR adds a new Wear OS companion rather than fixing an established current behavior. Physical-device recordings demonstrate the earlier branch state, but not the live head’s changed agent derivation.

Review metrics: 2 noteworthy metrics.

  • Wear RPC authority: 5 allowlisted methods. The watch can inspect status and sessions and invoke history, send, and abort through the authenticated phone, making identifier isolation part of the security contract.
  • Persistent and release surfaces: 2 watch preferences, 1 Wear version-code path. Fresh-install defaults and the separate Play artifact contract require explicit upgrade, privacy, and release-owner review.

Stored data model
Persistent data-model change detected: serialized state: apps/android/wear/proguard-rules.pro, vector/embedding metadata: apps/android/wear/src/main/res/drawable/ic_openclaw_launcher.xml, vector/embedding metadata: scripts/native-app-i18n.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: superseded
Canonical: #109433
Summary: The maintainer-labeled Wear companion explicitly supersedes this PR and the staged status branch, but this PR should remain open until that replacement is a proof-positive viable landing path.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🦐 gold shrimp
Patch quality: 🦐 gold shrimp
Result: blocked until stronger real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Replace watch-visible canonical session keys with phone-issued opaque handles and focused regression coverage.
  • [P1] Add redacted physical-device proof from the live head showing Agents, session switching, voice delivery, and TTS.
  • Have Android owners select this branch or feat(android): add Wear OS companion #109433 as the single landing path.

Proof guidance:

  • [P1] Needs stronger real behavior proof before merge: The physical-watch recordings convincingly prove commit 31d678b, but the live head later changed visible agent derivation and fresh-install audio behavior; add redacted exact-head install, Agents, session-switch, voice-send, and TTS evidence, then update the PR body to trigger review or ask a maintainer for @clawsweeper re-review.

Risk before merge

  • [P1] The watch-facing model still carries canonical Gateway session identifiers, widening the phone/watch trust boundary and coupling the watch protocol to internal routing keys.
  • [P1] The proposed canonical replacement at feat(android): add Wear OS companion #109433 lacks positive exact-head physical proof for conversation, session switching, microphone delivery, and TTS, so closing this proven contributor branch now could discard the only demonstrated hardware path.
  • [P1] The normal Android archive and signing-preflight path gains a mandatory Wear artifact even though Wear publication remains an owner-controlled future decision, so Wear-specific build or signing failures could block phone release preparation.

Maintainer options:

  1. Canonicalize after exact-head proof (recommended)
    Pause this PR until the owner branch proves its exact-head phone/watch behavior, then retain only that implementation and close this branch as superseded.
  2. Repair this landing path
    Keep this branch only if it moves canonical session-key resolution entirely phone-side and refreshes physical proof against the resulting head.
  3. Accept the expanded trust and release contract
    Merge only if Android owners explicitly accept watch-side canonical session identifiers and mandatory Wear participation in the standard release archive.

Next step before merge

  • [P1] Android owners should first select the canonical Wear branch and verify exact-head physical behavior; this is not a safe automated repair or duplicate-close decision yet.

Maintainer decision needed

  • Question: Should Android maintainers adopt feat(android): add Wear OS companion #109433 as the canonical Wear companion after it gains exact-head physical proof, or continue this contributor branch as the landing path?
  • Rationale: Two substantial branches now implement the same product surface, and selecting the permanent runtime, security, and Android release owner boundary cannot be resolved by a mechanical patch review.
  • Likely owner: obviyus — The decision spans Android runtime, user experience, phone/watch trust boundaries, and release operations, matching the documented Android contribution ownership.
  • Options:
    • Canonicalize the owner branch (recommended): Require exact-head physical conversation, session, voice, and TTS proof on feat(android): add Wear OS companion #109433, then close this PR as superseded while retaining its contributor credit and evidence.
    • Continue this branch: Keep this PR as the landing candidate, replace canonical session keys with phone-side opaque handles, refresh exact-head hardware proof, and close the competing implementation.

Security
Needs attention: The matching-signature Data Layer and five-method allowlist are sound foundations, but canonical Gateway session identifiers still cross onto the watch.

Review findings

  • [P1] Keep canonical session keys on the phone — apps/android/wear/src/test/java/ai/openclaw/wear/WearConversationClientTest.kt:31
Review details

Best possible solution:

Land one Android-owner-approved Wear implementation using phone-issued opaque session handles, opt-in reply speech, exact-head physical-device proof, and release wiring staged so phone publication does not depend on an unapproved Wear rollout; preserve contributor credit and proof when consolidating into #109433.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR adds a new Wear OS companion rather than fixing an established current behavior. Physical-device recordings demonstrate the earlier branch state, but not the live head’s changed agent derivation.

Is this the best way to solve the issue?

No, not yet: the phone-owned Gateway architecture and bounded protocol are appropriate, but exposing canonical session keys and maintaining two competing full Wear implementations is not the narrowest maintainable solution.

Full review comments:

  • [P1] Keep canonical session keys on the phone — apps/android/wear/src/test/java/ai/openclaw/wear/WearConversationClientTest.kt:31
    The current test still passes agent:main as activeSessionKey and expects that canonical Gateway key to become the watch-facing active session and session ID. This leaves internal routing identifiers on the watch and lets subsequent history, send, and abort requests depend on them, contrary to the phone-owned opaque-handle boundary raised in the previous review cycle. Issue opaque handles to the watch and resolve them only inside the phone proxy.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 6b6bf3a34bd3.

Label changes

Label changes:

  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The physical-watch recordings convincingly prove commit 31d678b, but the live head later changed visible agent derivation and fresh-install audio behavior; add redacted exact-head install, Agents, session-switch, voice-send, and TTS evidence, then update the PR body to trigger review or ask a maintainer for @clawsweeper re-review.
  • remove proof: sufficient: Current real behavior proof status is insufficient, not sufficient.
  • remove status: ⏳ waiting on author: Current PR status label is status: 📣 needs proof.

Label justifications:

  • P2: This is a substantial optional companion-app feature with a concrete security-boundary defect and competing implementation, but it does not regress currently shipped users.
  • merge-risk: 🚨 compatibility: The PR changes Android version generation, archive outputs, signing preflight, CI expectations, and persisted watch preferences.
  • merge-risk: 🚨 security-boundary: The watch gains transcript, send, session-switch, and abort authority and currently receives canonical internal session identifiers from the phone.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The physical-watch recordings convincingly prove commit 31d678b, but the live head later changed visible agent derivation and fresh-install audio behavior; add redacted exact-head install, Agents, session-switch, voice-send, and TTS evidence, then update the PR body to trigger review or ask a maintainer for @clawsweeper re-review.
  • proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. The physical-watch recordings convincingly prove commit 31d678b, but the live head later changed visible agent derivation and fresh-install audio behavior; add redacted exact-head install, Agents, session-switch, voice-send, and TTS evidence, then update the PR body to trigger review or ask a maintainer for @clawsweeper re-review.
Evidence reviewed

PR surface:

Tests +41, Docs +21, Config +21, Other +2790. Total +2873 across 41 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 93 52 +41
Docs 8 26 5 +21
Config 1 23 2 +21
Generated 0 0 0 0
Other 28 2845 55 +2790
Total 41 2987 114 +2873

Security concerns:

  • [medium] Keep internal session identifiers phone-side — apps/android/wear/src/test/java/ai/openclaw/wear/WearConversationClientTest.kt:31
    Watch snapshots and requests use canonical keys such as agent:main; opaque phone-issued handles would limit information disclosure, prevent protocol coupling to internal routing identifiers, and centralize authorization in the authenticated phone process.
    Confidence: 0.96

What I checked:

Likely related people:

  • obviyus: The Android contribution documentation names this person for Android work, and recent history includes the chat, session, and foreground-runtime surfaces used by the phone proxy. (role: Android feature owner; confidence: high; commits: c1219d1, 636aab6, 6d7eb9b; files: apps/android/README.md, apps/android/app/src/main/java/ai/openclaw/app/NodeRuntime.kt, apps/android/app/src/main/java/ai/openclaw/app/chat/ChatController.kt)
  • joshavant: Repository history shows repeated work on Android versioning, artifact archiving, signing, preflight, upload, and release documentation changed by this PR. (role: Android release pipeline owner; confidence: high; commits: 40eec48, 91220cb, 91fb5d3; files: apps/android/scripts/build-release-artifacts.ts, apps/android/fastlane/Fastfile, apps/android/VERSIONING.md)
  • steipete: Introduced the merged bounded Wear proxy protocol and opened the maintainer-labeled companion PR that explicitly supersedes this branch. (role: Wear protocol introducer and adjacent implementation owner; confidence: high; commits: 0815f6a4f985, 8ce0a74d552c; files: apps/android/wear-shared/src/main/java/ai/openclaw/wear/shared/WearProtocol.kt, apps/android/wear-shared/src/test/java/ai/openclaw/wear/shared/WearProtocolTest.kt, apps/android/wear)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (7 earlier review cycles)
  • reviewed 2026-07-16T14:00:04.151Z sha a1c4d3a :: found issues before merge. :: [P1] Assign the Wear APK a unique version code | [P2] Default automatic reply speech to off | [P2] Complete the request task when the coroutine fails | [P2] Use the Wear OS product name
  • reviewed 2026-07-16T14:40:07.056Z sha a1c4d3a :: needs real behavior proof before merge. :: [P1] Give the Wear APK a distinct release version code | [P1] Wire the Wear app into Android release publication | [P3] Use Wear OS branding in the app label
  • reviewed 2026-07-16T15:24:04.808Z sha a1c4d3a :: needs real behavior proof before merge. :: [P1] Give the Wear artifact a unique version code | [P3] Name the application Wear OS, not WatchOS
  • reviewed 2026-07-16T19:31:35.331Z sha 31d678b :: needs real behavior proof before merge. :: [P2] Complete failed Wear RPC tasks | [P2] Make automatic reply speech opt-in
  • reviewed 2026-07-16T20:14:17.542Z sha 31d678b :: found issues before merge. :: [P2] Complete the Wear RPC task when handling throws | [P2] Default automatic reply speech to off
  • reviewed 2026-07-16T20:59:46.207Z sha 31d678b :: found issues before merge. :: [P2] Default automatic reply speech to off
  • reviewed 2026-07-17T00:09:24.489Z sha 506da04 :: needs real behavior proof before merge. :: [P1] Keep canonical session keys on the phone

# Conflicts:
#	.github/workflows/ci.yml
#	apps/android/settings.gradle.kts
#	apps/android/wear-shared/build.gradle.kts
# Conflicts:
#	.github/workflows/ci.yml
@IWhatsskill

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. label Jul 16, 2026
@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jul 17, 2026
@Solvely-Colin Solvely-Colin self-assigned this Jul 17, 2026
@steipete

Copy link
Copy Markdown
Contributor

Superseded by #109433, which landed the complete phone-proxy Wear OS companion in 8d5e39afcd59c8af711029d3a7cedb2fe4cda24b with the conversations, voice replies, agents, sessions, bounded transport, tests, packaging, release setup, docs, and exact-head Android CI proof.

Thank you @IWhatsskill for the expanded Wear implementation and device proof. Your contribution is credited in the landed Android changelog.

@steipete steipete closed this Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android docs Improvements or additions to documentation merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants