Skip to content

fix(android): distinguish connection status from chat readiness - #143128

Merged
steipete merged 3 commits into
mainfrom
codex/android-health-status-copy
Sep 9, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/android-health-status-copy

Conversation

@steipete

@steipete steipete commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

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

  • 140 focused Android tests passed, including connected/failed-health accessibility and Health-screen cases, the Overview unknown-provider regression, and existing chat/composer coverage. The new Overview assertion failed on the previous wording: expected Online, actual Healthy. The earlier Health/header cases also have verified failing-before/passing-after results.
  • Changed-file checks, ktlint, native-string verification, Play and ThirdParty compilation, and independent code review passed. Only the source string inventory is changed; generated translations follow the normal workflow.
  • Installed the signed Play debug APK built from 110c524dd429806148502cb4e5b3dedcbc07ace7 in 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 installed Gateway is a synthetic local fixture, not a real provider. Overview's no-attention/unknown-provider branch is covered by the owner regression; the installed Overview run exercised its attention branch. No provider execution is claimed.

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.

Before: connected Gateway but chat incorrectly asks for a connection

After: connected Gateway and separate chat readiness

Before: Settings claims all systems operational despite an unavailable summary

After: Settings preserves the version and removes the overall-health claim

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.

@clawsweeper

clawsweeper Bot commented Sep 9, 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 docs Improvements or additions to documentation app: android App: android size: S maintainer Maintainer-authored PR labels Sep 9, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 9, 2026
@clawsweeper

clawsweeper Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 9, 2026, 10:35 AM ET / 14:35 UTC (Revision 2).

ClawSweeper review

What this changes

The 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
Reviewed head: 110c524dd429806148502cb4e5b3dedcbc07ace7

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct presentation repair with convincing visual evidence, relevant regression coverage, and successful hosted CI.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected installed-Android before/after screenshots directly prove the Health wording and Settings-footer changes; the head-bound emulator account covers connected health failure and recovery through ordinary navigation. Accessibility and Overview's unknown-provider branch have supplemental regression coverage; no real-provider execution is claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected installed-Android before/after screenshots directly prove the Health wording and Settings-footer changes; the head-bound emulator account covers connected health failure and recovery through ordinary navigation. Accessibility and Overview's unknown-provider branch have supplemental regression coverage; no real-provider execution is claimed.
Evidence reviewed 9 items Introduced production changes: The complete local merge-base-to-head diff changes presentation expressions and removes the redundant Settings footer; it does not change transport, health polling, sending, permissions, or persistence.
Still necessary on current main and latest release: Current main still renders Needs connection for unsuccessful chat health, Offline in the accessibility header, and Healthy/All systems nominal in Overview. The latest release tag also retains Needs connection on Health.
Current-main header verification: The current-main header derives Offline solely from unsuccessful chat health after checking loading and active work; it does not establish a disconnected transport.
Findings None None.
Security None None.

How this fits together

Android 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +134, Docs +2, Other -14. Total +122 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 139 5 +134
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 4 15 29 -14
Total 7 156 34 +122

Review metrics

None.

Technical review

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

Labels

Label justifications:

  • P2: Misleading Android readiness and health labels cause bounded user confusion while existing recovery actions remain available.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected installed-Android before/after screenshots directly prove the Health wording and Settings-footer changes; the head-bound emulator account covers connected health failure and recovery through ordinary navigation. Accessibility and Overview's unknown-provider branch have supplemental regression coverage; no real-provider execution is claimed.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected installed-Android before/after screenshots directly prove the Health wording and Settings-footer changes; the head-bound emulator account covers connected health failure and recovery through ordinary navigation. Accessibility and Overview's unknown-provider branch have supplemental regression coverage; no real-provider execution is claimed.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected installed-Android before/after screenshots directly prove the Health wording and Settings-footer changes; the head-bound emulator account covers connected health failure and recovery through ordinary navigation. Accessibility and Overview's unknown-provider branch have supplemental regression coverage; no real-provider execution is claimed.

Evidence

What I checked:

Likely related people:

  • steipete: 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 (1 earlier review cycle)
  • reviewed 2026-09-09T13:37:42.960Z sha 110c524 :: needs maintainer review before merge. :: none

@steipete steipete self-assigned this Sep 9, 2026
@steipete
steipete merged commit 088dee1 into main Sep 9, 2026
240 of 242 checks passed
@steipete
steipete deleted the codex/android-health-status-copy branch September 9, 2026 14:38
@steipete

steipete commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 9, 2026
…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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 10, 2026
…claw#143128)

* fix(android): describe chat readiness consistently

* fix(android): stop presenting connection as overall health
threely-lab pushed a commit to threely-lab/openclaw that referenced this pull request Sep 10, 2026
…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
obviyus added a commit that referenced this pull request Sep 11, 2026
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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 12, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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.

1 participant