Repository navigation
refactor(android): remove obsolete chat rendering paths - #119615
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 5, 2026, 10:15 AM ET / 14:15 UTC. ClawSweeper reviewWhat this changesThe PR removes unused Android chat and tool-rendering paths, consolidates session timestamps on the shared formatter, retargets tests to the live renderer, and refreshes the native-string inventory. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 3 items remain The source supports this as the right canonical-path cleanup: production chat already uses Priority: P3 Review scores
Verification
How this fits togetherGateway conversation and session data enter Android’s chat timeline, which renders persisted and streaming messages through the live chat bubble and pending tools through its tool bubble. The cleanup removes an older parallel renderer so those live paths remain the sole presentation owners. flowchart LR
A[Gateway conversation data] --> B[Android chat timeline]
B --> C[Live chat bubble]
B --> D[Pending tool bubble]
E[Session update time] --> F[Shared timestamp formatter]
F --> G[Session and command lists]
C --> H[Message media and actions]
Before merge
Agent review detailsSecurityNone. PR surfaceOther -731. Total -731 across 12 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the live Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is a cleanup, not a report of a separately reproducible defect. Source inspection does establish that the live Android route is the retained Is this the best way to solve the issue? Yes, with the proof gate satisfied: removing uncalled parallel renderers and testing the active owner is more maintainable than preserving duplicate UI paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against acc31c3af3b1. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
What Problem This Solves
Android retained an obsolete, parallel message/tool-rendering stack after the live conversation UI moved to
ChatBubbleandToolBubble. The abandoned tool-display registry, old message/media/voice composables, and duplicate relative-time formatters inflated the Android owner surface and left regression tests targeting UI that users never see.Why This Change Was Made
Remove the unreachable Android-only rendering/registry branches and keep the existing live
ChatBubble/ToolBubbleflow as the single owner. Reuse canonicalrelativeSessionTimefor overview and command-palette timestamps, migrate managed-image and legacy-media checks onto the real chat bubble, and preserve UTF-16 surrogate-boundary coverage in its existing owner test. Regenerate only the canonical native-source inventory from surviving Android strings; translated catalogs, generated Android resources, and Apple sources are unchanged.User Impact
No intended visible behavior change: existing tool presentation, managed images, audio/video fallback labels, voice-note flows, session timestamps (
now,5m,3h,2d), and surrogate-safe text truncation remain intact. Android becomes easier to maintain through one live rendering path and a source inventory that matches the actual native UI.Evidence
pnpm native:i18n:baselineregenerated onlyapps/.i18n/native-source.json; 5,393 entries, SHA-2566bde2ed6b71bb8c09b3cfa4e24b4a677bc04e647b5d1612cf0508ae3fd21c910.pnpm native:i18n:verifypassed (changed=false; Android app 1,649 keys, third-party 4, Wear 87, Apple 1,249). No translations, generated resources, or Apple files changed.:app:testPlayDebugUnitTestand:app:testThirdPartyDebugUnitTestpassed againstUtf16TextTest,SessionsScreenGroupingTest,CommandPaletteLogicTest,ChatMessageViewsTest,ChatScreenTest, andChatMediaPlayerTest: 36 tests per variant, 72 total; zero failures, errors, or skips. This directly exercises the live chat bubble, managed image/media fallbacks, canonical timestamps, and UTF-16 surrogate limits.OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 CI=1 corepack pnpm check:changedpassed the apps lane, including the native state schema guard..agents/skills/autoreview/scripts/autoreview --mode local --engine codex --model gpt-5.6-sol --thinking xhigh: no accepted/actionable findings, confidence 0.98.Real Android 16 emulator evidence (exact reviewed commit)
f99de8c2860c207d8d75469359adabc2b4bfce79, Play debug APK SHA-256f6903f8918609085b1276949e6d6d034b862983f2501c1df4d46e9e600e97fd3; captured screenshots are 1080 × 1920.12:01 AM,12:00 AM, and11:59 PMtimestamps. Screenshotfixture-chat.pngSHA-256:b2ee1e01a8f4e8075389dcbb2f012434084d053105b55b8594608acb00c32893.voice-note-proof.m4a(1:05), video fallbackrelease-preview-proof.mp4(0:09), and12:02 AMtimestamp. Screenshotmanaged-media.pngSHA-256:3dca9db02a0a1f725cabf992c05a2c0311986670b037514b098dee7799335adf.OK (2 tests); separately observed production ToolBubbleTools running,search_release_checklist,OpenClaw is working,You,Show release checklist tools, and12:01 AM. The ToolBubble observation is instrumentation/UI-tree evidence; no separate ToolBubble screenshot is attached.Production MainActivity: real chat and timestamps
Production ChatBubble: managed image, audio, and video fallback