Repository navigation
fix(android): avoid false Gateway offline labels in empty chats - #142182
Conversation
Keep the actual offline recovery state while explaining connected but health-unready empty chats accurately. Preserve health policy and durable sending; update the existing native localization catalogs.
|
🦞👀 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 8, 2026, 9:39 AM ET / 13:39 UTC. ClawSweeper reviewWhat this changesAndroid empty chats distinguish unavailable chat health from a disconnected Gateway, with matching recovery guidance, regression tests, documentation, and localization source inventory. Merge readiness✅ Ready for maintainer review The fix remains useful: current main still mislabels connected, unhealthy empty chats. No actionable defects were found, and the locale correction preserves the previously reviewed behavior. Priority: P2 Review scores
Verification
How this fits togetherAndroid chat combines Gateway connection status, chat health, and loaded history to choose its empty-state message. Its existing Refresh chat action reloads history and checks health again. flowchart TD
A[Gateway connection status] --> D[Empty chat presentation]
B[Chat health] --> D
C[Loaded empty history] --> D
D --> E[Ready or chat not ready or offline]
E --> F[Refresh chat or connection recovery]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +188, Docs 0, Other +12. Total +200 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Use the existing connection and health facts to present accurate readiness guidance while preserving Refresh chat and offline recovery behavior. Do we have a high-confidence way to reproduce the issue? Yes: current main selects Gateway offline when empty history has loaded and health is false despite an open connection; the supplied installed-app comparison demonstrates that state. This review did not execute a reproduction. Is this the best way to solve the issue? Yes: correcting the two presentation expressions reuses authoritative state already supplied to the component and avoids altering health, sending, or persistence. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 865f1bbdbf44. 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.
|
…claw#142182) * fix(android): distinguish chat readiness from connection state Keep the actual offline recovery state while explaining connected but health-unready empty chats accurately. Preserve health policy and durable sending; update the existing native localization catalogs. * chore(android): leave generated locales to the refresh workflow
What Problem This Solves
Fixes an issue where Android users opening an empty chat could see Gateway offline even though the Gateway connection was open. Chat health had not been confirmed, or its health check had failed. The accompanying text could also claim a check was running after it had already failed.
Related: #142131; continued Android app audit.
Why This Change Was Made
The empty state now uses the connection and chat-health facts it already receives. Connected but unhealthy chat shows Chat not ready, with Refresh chat guidance. Healthy chat keeps its existing ready state; a genuinely disconnected Gateway keeps its offline recovery controls.
This changes two presentation expressions, not health polling, connection policy, sending, or storage. The header's existing chat-readiness status is unchanged. Documentation and the native source inventory are updated. Translated catalogs and generated platform resources belong to the separate Native App Locale Refresh workflow; until that refresh, these two new labels use the existing English-source fallback.
Production: +13/−2 (net +11, mostly formatter expansion of the two expressions). Tests: +188. Only the source inventory is included; no new state owner, configuration, dependency, or protocol change.
User Impact
Users can distinguish an unavailable chat from a lost Gateway connection and know which existing action to try. Messages can still queue while chat health is unavailable and send after recovery.
Evidence
422e4c077d03d1717ff82894d363c19860720cdc. The baseline is the actual4ab02076931423dfd3700ee02cc76e24cbda0d41APK: its Android/resource/icon source trees match this patch's parent, and all 199 packaged assets match that prior candidate. The screenshots and installed comparison remain evidence for that exact binary, not an APK built from the later source-only correction.The fixture supplies empty history and normal health responses only; no provider execution or message sending is claimed by the installed comparison. The queue/send behavior is covered separately by the controller/UI tests. The screenshots contain inspected synthetic app content only; app data was reset between phases, so generated device identifiers differ. Both fixtures and the owned emulator exited normally, private fixture material was removed, routing was cleared, and font scale restored.
The corrected source-only head is
04225b4ca49214986d985f82518e06bd41ca60a1. Its four source/test/docs/inventory files are byte-identical to the original reviewed candidate; the 44 generated/translated files exactly match its original parent.The first hosted run stopped before app tests because I incorrectly mixed generated locale artifacts with source. The correction removes exactly those 44 artifact changes while preserving all four source/test/docs/inventory afterimages. No CI rule, translation check, application policy, or assertion was weakened. Exact-head CI passed on attempt 2. All four Android jobs passed on the corrected run's first attempt; 16 broader work jobs reported self-hosted runner disconnections. One failed-job-only retry passed without source, check, or timeout changes. Native landing validation follows.