Repository navigation
fix(wear): settle remote chat outcomes and replace stale streamed text - #144387
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 4:19 PM ET / 20:19 UTC (Revision 27). ClawSweeper reviewWhat this changesRepairs 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 Review scores
Verification
How this fits togetherThe 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +2934, Docs +1, Other +800. Total +3735 across 13 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (26 earlier review cycles; latest 8 shown)
|
67cf289 to
a223db1
Compare
a223db1 to
09c25f8
Compare
This comment has been minimized.
This comment has been minimized.
2c2f5d9 to
6d9a344
Compare
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]>
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]>
545c7ca to
e2f07ae
Compare
6d9a344 to
d0cbc84
Compare
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]>
|
@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. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
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]>
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]>
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
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