Repository navigation
fix(android): distinguish connection status from chat readiness - #143128
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 9, 2026, 10:35 AM ET / 14:35 UTC (Revision 2). ClawSweeper reviewWhat this changesThe Android app separates Gateway connection status from chat readiness, removes unsupported overall-health claims, and updates regression coverage, source strings, and recovery documentation. Merge readiness✅ Ready for maintainer review This remains a useful, narrowly scoped correction: current main retains the misleading labels. No actionable defect was found, and the inspected before/after evidence supports the presentation changes. Priority: P2 Review scores
Verification
How this fits togetherAndroid receives Gateway connection state and chat-health results separately. Its Health screen, chat accessibility header, and Overview translate those facts into status messages and recovery guidance. flowchart TD
A[Gateway connection state] --> C[Android status presentation]
B[Chat health result] --> C
D[Known attention items] --> C
C --> E[Health and chat readiness labels]
C --> F[Overview connection summary]
E --> G[Refresh chat action]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +134, Docs +2, Other -14. Total +122 across 7 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep status copy scoped to the facts already owned by connection and chat-health state, with the existing Refresh chat recovery action. Do we have a high-confidence way to reproduce the issue? Yes: a failed chat-health request while transport stays connected reaches the misleading labels on current main; the supplied baseline screenshots independently demonstrate the Health-screen contradiction. This review did not execute the app. Is this the best way to solve the issue? Yes: correcting the existing presentation expressions preserves state ownership and recovery behavior without introducing another health model or configuration path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d3115f751fc2. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
…er-ownership-20260909 * origin/main: (147 commits) fix(cli): reject blank account selectors before command startup (#143088) fix(update): repair young runs after recorded drivers exit (#143136) test(telegram): close model callback fixture connections (#143197) improve(test): reduce Telegram policy fixture startup overhead (#143192) test(ci): stabilize systemd manager shim timing (#143134) fix(test): retire chat preview Escape listeners during teardown (#143191) test(memory-wiki): share visibility test callbacks (#143181) fix(ci): accept native iOS keychain filenames (#142968) fix(ci): show publication observations in FRV status (#143171) fix(github): point the stuck-FAQ auto-response at a live anchor (#143194) docs: correct verified accuracy defects in CLI, tools, and automation pages (#143179) refactor(tests): remove duplicate Mistral cache-cost test (#143172) fix(doctor): complete canonical model-reference migration (#142284) fix(ci): reject stale and empty timing sample cohorts (#143182) fix(ui): remove first-reply confetti from chat (#143167) docs: split help/faq into 13 topic pages (#143150) refactor(docs): require caller-owned route indexes (#143164) fix(android): distinguish connection status from chat readiness (#143128) refactor: share agent-turn execution test defaults (#143166) fix(cli): print immutable-config refusals without crash framing (#143140) ...
…claw#143128) * fix(android): describe chat readiness consistently * fix(android): stop presenting connection as overall health
…claw#143128) - chat readiness no longer reads as connection state: "Not ready" replaces "Needs connection"/"Offline"; the Gateway metric card is Online/Offline only and its subtitle is "No highlighted items" - Settings footer drops the redundant status row (openclaw#143128 second hunk) - background-task reads adopt the gateway request lease (openclaw#142810 remainder): tasks.list / tasks.get now abandon in-flight work when the connection changes - register the two new native strings (base + 21 locales, zh-rCN hand-checked) and retire the three sources this supersedes - CronJobManagementPanel comment parity (openclaw#142324) v2026.9.10.14 / 2026091014
Related: #143128 ## What Problem This Solves Resolves intermittent Android CI failures after connection, reconnect, or a failed chat health check. The status test can see updated ViewModel values before the Chat header or Settings screen has rendered them. This is a maintainer-requested repair of the observed main failure. ## Why This Change Was Made The existing waits now require the expected rendered status as well as the existing model conditions. A shared matcher keeps Settings assertions and readiness checks aligned. Every display assertion and the 10-second timeout remain unchanged. ## User Impact Android validation observes the actual screen state before asserting it. Product code and behavior are unchanged. ## Evidence - On main `0b48b3e78c91576a2ad9d02654f474d694d3fae6`, the exact third-party unit-test command failed `SettingsScreensContrastTest.chatHeaderDoesNotAnnounceOfflineForConnectedHealthFailure`: `New chat, Ready` was not displayed after reconnect. The Play command passed. - The changed Settings/header suite and the neighboring `GatewayExecApprovalRuntimeTest` pass on the candidate. - A temporary control changed only the header's connected-but-unhealthy text to `Gateway offline`. The retained test rejected that behavior at the unchanged 10-second timeout. Production source was restored afterward. - Android test-source formatting and `git diff --check` pass. - Control UI performance already passes without a budget change. The final candidate measures 352878 bytes against the unchanged 353107-byte startup limit. - Full candidate Android commands passed on `03e4e9bd3c441443560aaca05001c801f7be03ed`: Play unit tests plus shared Wear tests (6m27s) and lint (1m59s); third-party unit tests (6m40s) and lint (1m47s). Co-authored-by: Ayaan Zaidi <[email protected]>
…144682) Related: openclaw#143128 ## What Problem This Solves Resolves intermittent Android CI failures after connection, reconnect, or a failed chat health check. The status test can see updated ViewModel values before the Chat header or Settings screen has rendered them. This is a maintainer-requested repair of the observed main failure. ## Why This Change Was Made The existing waits now require the expected rendered status as well as the existing model conditions. A shared matcher keeps Settings assertions and readiness checks aligned. Every display assertion and the 10-second timeout remain unchanged. ## User Impact Android validation observes the actual screen state before asserting it. Product code and behavior are unchanged. ## Evidence - On main `facc2514f633b0a7b20a3b7d9f33c3bd336915b7`, the exact third-party unit-test command failed `SettingsScreensContrastTest.chatHeaderDoesNotAnnounceOfflineForConnectedHealthFailure`: `New chat, Ready` was not displayed after reconnect. The Play command passed. - The changed Settings/header suite and the neighboring `GatewayExecApprovalRuntimeTest` pass on the candidate. - A temporary control changed only the header's connected-but-unhealthy text to `Gateway offline`. The retained test rejected that behavior at the unchanged 10-second timeout. Production source was restored afterward. - Android test-source formatting and `git diff --check` pass. - Control UI performance already passes without a budget change. The final candidate measures 352878 bytes against the unchanged 353107-byte startup limit. - Full candidate Android commands passed on `03e4e9bd3c441443560aaca05001c801f7be03ed`: Play unit tests plus shared Wear tests (6m27s) and lint (1m59s); third-party unit tests (6m40s) and lint (1m47s). Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Fixes an issue where Android users were told chat needed a connection even though the Gateway was connected. The chat header also announced “Offline” after a failed health check. Meanwhile, Settings could claim “All systems operational,” and Overview could claim “Healthy,” without having established overall health.
Why This Change Was Made
Keep connection, chat readiness, and highlighted issues distinct. Health and the chat header now say “Not ready” when chat health is unconfirmed or fails. Overview reports “Online” and scopes its quiet state to “No highlighted items.” The redundant Settings status footer is removed; the version remains.
This changes presentation, not connection policy, health checks, retry timing, provider availability, permissions, or persistence. Unknown provider availability still does not manufacture an attention warning. Production code shrinks by 13 lines; existing regression coverage is extended rather than adding a new status owner.
User Impact
Users can tell a failed chat-health check from an offline Gateway and use Refresh chat to check again. Refresh Logs only reloads logs. Detailed connection and node status remain available, and actual disconnects still show Gateway offline with recovery actions.
Evidence
110c524dd429806148502cb4e5b3dedcbc07ace7in an isolated emulator. Ordinary onboarding and app navigation exercised healthy chat, a failed health response while both connections stayed open, Refresh Logs without a chat-health refresh, successful health recovery, Refresh chat, and the real Disconnect action. The fixture observed four health requests, two log reads, and both connections closing on Disconnect; it stopped cleanly.The before screenshots use baseline
f3271158f8d72ccd11c743bfae150ae7dd6a47d4; the after screenshots use the exact candidate above. Both are ordinary app screens with synthetic data. An earlier baseline recovery attempt expired in the fixture; only its completed baseline captures are used, not that failed recovery attempt. The final candidate run completed successfully.Related: #142182 and the Android follow-up work from #134939.
Hosted CI
CI run 34357820621, attempt 2 completed successfully on the unchanged candidate. The first Play job exceeded its 20-minute overall budget even though its unit-test and lint commands both completed successfully; one normal job retry passed. No timeout, coverage, source, or check was relaxed.