Skip to content

fix(wear): settle remote chat outcomes and replace stale streamed text - #144387

Merged
roboclaw-bot merged 6 commits into
mainfrom
openclaw/wear-pr-b1-20260910
Sep 13, 2026
Merged

roboclaw-bot merged 6 commits into
mainfrom
openclaw/wear-pr-b1-20260910

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes Wear replies remaining pending after completion, rejection or a successful stop command, and stale text remaining visible when a streamed reply is shortened or cleared.

User Impact

Users can continue after a completed reply or submit corrected text after a fresh rejection without switching conversations. Explicit retries preserve unresolved delivery identity, and reply feedback cannot speak another run's message. ID-correlated completion uses the reconciled canonical reply rather than a stale terminal payload. Streamed text follows the phone's canonical replacement, including an empty replacement.

Why This Change Was Made

The existing watch owner distinguishes a pending send, its completed outcome and the result of an Abort request. An acknowledgment alone does not prove completion; matching terminal events or canonical history settle the reply. A rejected retry cannot erase uncertainty about an earlier delivery, while a control-only stop can finish without starting a new run.

The phone remains the canonical stream-projection owner. No new transport, command parser, protocol field or persistent outbox is introduced.

Evidence

  • Regression tests cover terminal events before acknowledgments, missed terminals recovered from history, foreign and anonymous runs, rejected retries, no-op Abort and control-only stop acknowledgments.
  • Replacement tests cover shorter and empty text while preserving Unicode bounds and history-race reconciliation.
  • Revision-specific CI passed Wear and both phone-variant tests, lint and Kotlin checks.

The evidence is host-based; real paired-device delivery, reply speech and haptic feedback have not been manually validated.

Maintainer acceptance — September 13, 2026: For reviewed revision 1ea53ab0dacb, the existing host/CI evidence is accepted with the documented uncertainty in paired-device reply speech and confirmation haptics, without additional native feedback validation. This records acceptance of the stated evidence limitation, not a claim that the missing device tests were performed.

Builds on merged #144414.

Worked on by: @IWhatsskill

@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: android App: android app: wearos App: wearos size: XL maintainer Maintainer-authored PR labels Sep 10, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 10, 2026 20:24
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. 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. labels Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 4:19 PM ET / 20:19 UTC (Revision 27).

ClawSweeper review

What this changes

Repairs Wear OS reply completion, rejection and Stop feedback, preserves uncertain retry identities, and lets canonical streamed text shrink or clear, with regression coverage.

Merge readiness

✅ Ready for maintainer review

This PR remains useful and has no remaining actionable findings. The recorded acceptance for the unchanged reviewed revision satisfies the prior native-validation decision; current main still needs the repair.

Priority: P2
Reviewed head: 1ea53ab0dacb99b2686d53c0370d7361a682feea

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent repair with extensive behavioral regressions, successful exact-head CI, and no remaining actionable finding; native coverage limitations have recorded acceptance.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer/bot proof exemption applies. Host tests exercise the watch reply owner and completion effect through controlled phone I/O; physical delivery, speech, and haptics remain unverified, with that limitation explicitly accepted for this exact revision.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer/bot proof exemption applies. Host tests exercise the watch reply owner and completion effect through controlled phone I/O; physical delivery, speech, and haptics remain unverified, with that limitation explicitly accepted for this exact revision.
Evidence reviewed 9 items Prior decision addressed on the same revision: The supplied previous review assessed this exact head, reported no findings, and requested paired-device feedback evidence or explicit owner acceptance. The captured PR body records acceptance dated September 13 for this head, and the maintainer re-review request specifically asks to reassess that disposition. A read-only REST check confirmed the same head and acceptance text.
Exact-revision validation: The linked run https://github.com/openclaw/openclaw/actions/runs/34742225780 completed successfully on the reviewed head. Its android-test-wear, android-test-play, android-test-third-party, and android-ktlint jobs succeeded. These are host checks, not paired-device proof.
Reply lifecycle and feedback: The existing watch owner now distinguishes pending sends, terminal outcomes, and Abort acknowledgments. The production completion effect waits for correlated settlement and history before selecting feedback, while cancellation completes without speaking.
Findings None None.
Security None None.

How this fits together

The Wear OS companion sends chat requests through its paired Android phone. Phone-projected events and canonical history feed the watch’s reply state, transcript, speech, and confirmation feedback.

flowchart LR
  A[Watch reply or Stop] --> B[Watch reply state]
  B --> C[Paired phone proxy]
  C --> D[Gateway chat]
  D --> E[Canonical history and events]
  E --> C
  C --> B
  B --> F[Transcript and reply feedback]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +2934, Docs +1, Other +800. Total +3735 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 5 2936 2 +2934
Docs 1 2 1 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 7 960 160 +800
Total 13 3898 163 +3735

Review metrics

Metric Value Why it matters
Production and regression coverage Production net +538 lines; tests net +3187 lines Most growth is regression coverage; production growth represents the distinct send, completion, and Abort lifecycles described in the PR.

Technical review

Best possible solution:

Keep settlement in the existing watch reply owner and canonical projection on the phone, preserving correlated feedback and deliberate idempotent retries.

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

Yes, from source: on current main, a matching remote terminal with unchanged assistant history leaves the local reply waiting, and complete shorter projections retain stale prefixes. No runtime reproduction was executed during this read-only review.

Is this the best way to solve the issue?

Yes. The patch extends the existing reply and projection owners without adding a transport, persistent outbox, configuration option, or competing command parser.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against b9a099e0a5fd.

Labels

Label changes:

  • remove merge-risk: 🚨 other: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: This repairs reply-state and streamed-text behavior within the Wear companion, with limited product-wide blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer/bot proof exemption applies. Host tests exercise the watch reply owner and completion effect through controlled phone I/O; physical delivery, speech, and haptics remain unverified, with that limitation explicitly accepted for this exact revision.

Evidence

What I checked:

Likely related people:

  • IWhatsskill: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (26 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-12T19:24:47.117Z sha 2c2f5d9 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-12T21:39:20.885Z sha 6d9a344 :: blocked before merge. :: none
  • reviewed 2026-09-12T21:58:52.999Z sha d0cbc84 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-12T22:22:32.330Z sha d0cbc84 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T02:26:24.839Z sha d0cbc84 :: blocked before merge. :: none
  • reviewed 2026-09-13T05:32:02.086Z sha d0cbc84 :: blocked before merge. :: none
  • reviewed 2026-09-13T06:02:35.866Z sha 1e25525 :: blocked before merge. :: none
  • reviewed 2026-09-13T06:20:40.044Z sha 1ea53ab :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 10, 2026
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/wear-pr-b1-20260910 branch from 67cf289 to a223db1 Compare September 10, 2026 23:13
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 10, 2026
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/wear-pr-b1-20260910 branch from a223db1 to 09c25f8 Compare September 11, 2026 12:16
@blacksmith-sh

This comment has been minimized.

@IWhatsskill IWhatsskill self-assigned this Sep 11, 2026
@clawsweeper clawsweeper Bot added 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. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 12, 2026
@roboclaw-bot
roboclaw-bot changed the base branch from main to openclaw/wear-pr-a2-20260910 September 12, 2026 21:23
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/wear-pr-b1-20260910 branch from 2c2f5d9 to 6d9a344 Compare September 12, 2026 21:23
roboclaw-bot added a commit that referenced this pull request Sep 12, 2026
Normalize existing PR #144387 onto its direct native-stack predecessor while preserving reviewed feature content.

Original-PR-Head: 2c2f5d9

Worked on by: @IWhatsskill

Co-authored-by: IWhatsskill <[email protected]>
roboclaw-bot and others added 3 commits September 12, 2026 21:46
Normalize existing PR #144346 onto its direct native-stack predecessor while preserving reviewed feature content.

Original-PR-Head: 5c90b85

Worked on by: @IWhatsskill

Co-authored-by: IWhatsskill <[email protected]>
Normalize existing PR #144414 onto its direct native-stack predecessor while preserving reviewed feature content. Includes the regression-proven test-fixture isolation correction; no production changes.

Original-PR-Head: a75a788

Worked on by: @IWhatsskill

Co-authored-by: IWhatsskill <[email protected]>
Normalize existing PR #144387 onto its direct native-stack predecessor while preserving reviewed feature content.

Original-PR-Head: 2c2f5d9

Worked on by: @IWhatsskill

Co-authored-by: IWhatsskill <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/wear-pr-a2-20260910 branch from 545c7ca to e2f07ae Compare September 12, 2026 21:48
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/wear-pr-b1-20260910 branch from 6d9a344 to d0cbc84 Compare September 12, 2026 21:48
@roboclaw-bot
roboclaw-bot removed this pull request from stack #146497 September 13, 2026 03:08
Base automatically changed from openclaw/wear-pr-a2-20260910 to main September 13, 2026 05:24
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. label Sep 13, 2026
roboclaw-bot and others added 3 commits September 12, 2026 22:56
Prefer the reconciled assistant record when a supported terminal payload identifies the same message. Keep keyed-run precedence, foreign-reply exclusion and the existing terminal fallback.

Add real completion-flow regressions for rewritten and shorter final/aborted replies, with unsupported error payloads remaining negative controls.

Worked on by: @IWhatsskill

Co-authored-by: IWhatsskill <[email protected]>
Stage the reviewed B1 feature and regression-proven canonical completion repair on main without further behavior changes.

Worked on by: @IWhatsskill

Co-authored-by: IWhatsskill <[email protected]>
Preserve the existing B1 history while retaining the exact reviewed feature and completion-fix tree.

Worked on by: @IWhatsskill

Co-authored-by: IWhatsskill <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

The PR body now records the maintainer's explicit acceptance of the documented host-only validation gap for this revision and links current-head CI. Please reassess the updated evidence and any remaining findings. Review only; no repair or merge requested.

@clawsweeper

clawsweeper Bot commented Sep 13, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. label Sep 13, 2026
@roboclaw-bot
roboclaw-bot merged commit a758b36 into main Sep 13, 2026
68 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/wear-pr-b1-20260910 branch September 13, 2026 21:01
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

threely-lab pushed a commit to threely-lab/openclaw that referenced this pull request Sep 14, 2026
Ports the android-relevant upstream commits since the last sync:
- openclaw#147265 widget CDN library/font loading (ChatInlineWidgetView.kt)
- openclaw#147275 control Gateway desktops without paired nodes (GatewayProtocol.kt)
- openclaw#144387 settle remote wear chat outcomes / replace stale streamed text
  (WearProxyController.kt: empty canonical content is a replacement, not absence)
- openclaw#147441 rolling session recaps in Activity (GatewayProtocol.kt)

ChatInlineWidgetView.kt and WearProxyController.kt are byte-identical to
upstream; GatewayProtocol.kt gains the session-scoped computer/activity
method and event enum entries. No i18n changes. Dropped wear/ app and test
files (not compiled in the phone build).

Co-authored-by: openclaw <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
openclaw#144387)

Settle owned Wear reply outcomes without confusing acceptance, completion, rejection, retry uncertainty or Abort. Apply canonical streamed-text replacements, including shorter and empty text.

Prefer the canonical record for an accepted terminal message ID while preserving keyed ownership and excluding foreign replies.

Validation: exact-head hosted CI and regression coverage. The documented paired-device speech/haptic limitation was explicitly accepted for this reviewed revision; no unperformed native validation is claimed.

Worked on by: @IWhatsskill

Co-authored-by: IWhatsskill <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: wearos App: wearos maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants