Skip to content

fix(ui): distinguish failed GitHub status checks from disconnected accounts - #140333

Merged
roboclaw-bot merged 2 commits into
mainfrom
fix/github-profile-connection-states
Sep 6, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
fix/github-profile-connection-states

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #139222 (the separately landed backend default-agent fix).

What Problem This Solves

Fixes an issue where users opening Settings → Profile could see a verified GitHub sign-in alongside misleading ‘Not verified’ and ‘Connect My GitHub’ prompts when the publishing-connection status had not loaded or its lookup failed. The same unloaded-state wording appeared for shared and agent GitHub credentials.

Why This Change Was Made

Keep request state distinct from credential health in the shared status renderer. Show checking, status-not-loaded, or lookup-unavailable states without claiming the account is disconnected. Preserve explicit setup access through ‘Manage connections’, show personal Connect/Change actions only after status is known, and clarify sign-in versus publishing authorization. No backend, credential, permission, or persistence changes.

User Impact

Operators can tell whether GitHub is disconnected or whether OpenClaw simply could not check it. Retry remains available, account setup stays accessible, and verified sign-in is clearly separate from publishing access.

Evidence

  • Three UI regression scenarios failed on the original implementation for the expected loading/error-state mismatch.
  • 44 focused UI/controller tests passed.
  • Four existing Chromium UI E2E scenarios passed: personal connect/reconnect/disconnect, admin default purpose, system/agent separation, and profile-switch fencing. The E2E runner built the production UI bundle.
  • Targeted formatting, English/i18n verification, UI typechecking, scoped Oxlint, and stylelint passed.
  • Independent autoreview through P2: scoped-clean, no actionable findings, including the CI test-target compatibility repair.
  • CI follow-up: replaced direct Promise.withResolvers calls in the tests with the existing createDeferredCore helper. The UI test-type lane and all 44 focused tests pass after this repair.
  • The independent docs-navigation repair fix(test): accept release subpages in docs route shape #140337 merged on September 6 at 18:03 UTC. This PR was rebased onto main 9474ff67da1fc627d83261f06d98519e6ae082fb to include it, without bundling a separate docs-test change. Both commits have identical range-diff entries and the same stable patch ID before/after rebase.
  • Rebased head 9f06e401572769e45d71deb9a424f32644f27bad: UI test types, all 44 focused tests, all four Chromium E2E scenarios/build, and fresh P2 autoreview passed again. Required CI is checked on this exact head before landing.
  • Before/after captures use the existing Chromium E2E flow with synthetic Gateway accounts, not a live GitHub authorization. The direct live-preview attempt was blocked by browser navigation policy; no policy was weakened.
  • The aggregate local check wrapper was blocked by the package-manager bootstrap minimum-release-age policy. Direct owner checks above were run without changing that policy; exact-head required CI remains a merge prerequisite.

Before / after (synthetic accounts)

Surface Before After
Sign-in identity explanation Before sign-in explanation After sign-in explanation
Publishing connections Before publishing connections After publishing connections

Worked on by:

Session: https://team.openclaw.ai/chat/roboclaw/dashboard/2ba50873-bd42-4e52-8215-613c1cca3d25

@clawsweeper

clawsweeper Bot commented Sep 6, 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 app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Sep 6, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 6, 2026 17:41
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 6, 2026
@clawsweeper

clawsweeper Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 6, 2026, 4:15 PM ET / 20:15 UTC.

ClawSweeper review

What this changes

The PR distinguishes pending and failed GitHub connection checks from known credential states, clarifies publishing access, and updates regression coverage.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused fix: current main and the latest release still conflate unloaded status with credential health. No introduced correctness or security defect was found, and the related merged backend repair does not replace this UI work.

Priority: P2
Reviewed head: 9f06e401572769e45d71deb9a424f32644f27bad

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful regression coverage and no actionable introduced defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary external-contributor gate does not apply to this trusted bot PR. Reported Chromium Settings flows and inspected synthetic-account captures support the copy and controls; loading/error transitions have focused test coverage. This reviewer could not retrieve the images and does not claim independent visual inspection or live GitHub authorization.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary external-contributor gate does not apply to this trusted bot PR. Reported Chromium Settings flows and inspected synthetic-account captures support the copy and controls; loading/error transitions have focused test coverage. This reviewer could not retrieve the images and does not claim independent visual inspection or live GitHub authorization.
Evidence reviewed 9 items Introduced change and preserved boundaries: The verified merge-base delta changes presentation, English copy, and regression tests. The shared renderer distinguishes absent results using controller loading/error state; known credential results retain their existing labels. Both production callers supply request state. No credential storage, authorization, protocol, dependency, or workflow change is introduced.
Current main still needs the fix: At fetched main, renderGitHubHealth accepts only identity and uses the same notLoaded translation for every absent result; the English translation remains “Not verified.” Current main therefore does not implement the requested distinction.
Latest release retains the old renderer: The supplied latest release, v2026.9.2, also has the identity-only renderer without loading/error input.
Findings None None.
Security None None.

How this fits together

Control UI’s GitHub settings receive personal and shared account status from the Gateway. They display credential health and expose existing connection setup and retry actions separately from verified sign-in identity.

flowchart TD
  A[Profile or agent settings] --> B[Gateway status request]
  B --> C{Credential result available?}
  C -->|Yes| D[Show credential health]
  C -->|No| E[Show loading or lookup failure]
  D --> F[Existing connection controls]
  E --> G[Retry or manage connections]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +29, Tests +72. Total +101 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 3 47 18 +29
Tests 2 74 2 +72
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 121 20 +101

Review metrics

None.

Technical review

Best possible solution:

Use the existing shared renderer to distinguish request availability from credential health while preserving account setup, retry, and authorization behavior.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: pending or rejected initial status requests leave identity absent, which current main renders as “Not verified” while offering personal connection setup. No runtime reproduction was executed in this review.

Is this the best way to solve the issue?

Yes. Passing existing controller request state into the shared presentation helper fixes the misleading labels without introducing another status owner or changing credential semantics.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f3b41e04f92e.

Labels

Label justifications:

  • P2: Misleading GitHub connection status causes bounded settings confusion while existing retry and setup paths remain available.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary external-contributor gate does not apply to this trusted bot PR. Reported Chromium Settings flows and inspected synthetic-account captures support the copy and controls; loading/error transitions have focused test coverage. This reviewer could not retrieve the images and does not claim independent visual inspection or live GitHub authorization.

Evidence

What I checked:

  • Introduced change and preserved boundaries: The verified merge-base delta changes presentation, English copy, and regression tests. The shared renderer distinguishes absent results using controller loading/error state; known credential results retain their existing labels. Both production callers supply request state. No credential storage, authorization, protocol, dependency, or workflow change is introduced. (ui/src/features/github-connections/github-identity-view.ts:50, 9f06e4015727)
  • Current main still needs the fix: At fetched main, renderGitHubHealth accepts only identity and uses the same notLoaded translation for every absent result; the English translation remains “Not verified.” Current main therefore does not implement the requested distinction. (ui/src/features/github-connections/github-identity-view.ts:50, f3b41e04f92e)
  • Latest release retains the old renderer: The supplied latest release, v2026.9.2, also has the identity-only renderer without loading/error input. (ui/src/features/github-connections/github-identity-view.ts:50, 3928bad9badf)
  • Established product contract: The Control UI documentation separates personal publishing credentials, shared System credentials, verified sign-in identity, and co-author preferences. The new explanatory copy follows this existing contract. Public docs: docs/web/control-ui.md. (docs/web/control-ui.md:213, 9f06e4015727)
  • Behavioral regression coverage: The tests cover deferred personal loading, failed personal and System lookups, retry recovery without reconnecting, retained setup access, and authoritative unverified/unavailable credential results. The existing Chromium scenario now activates Manage connections. These protect observable behavior without adding a test-only production seam; tests were inspected but not executed during this read-only review. (ui/src/features/github-connections/github-connections.test.ts:130, 9f06e4015727)
  • Proof and review continuity: The captured PR body and comment fix(ui): distinguish failed GitHub status checks from disconnected accounts #140333 (comment) report 44 focused tests, four Chromium flows, and inspection of all four synthetic-account before/after captures. The comment specifically describes the clarified sign-in text and Manage connections action. Attachment retrieval failed in this reviewer environment, so those images were not independently viewed. The previous completed review lists no findings; comparison with its earlier SHA could not complete because that object was unavailable. Neither limitation establishes a contributor defect. (9f06e4015727)

Likely related people:

  • steipete: 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 (2 earlier review cycles)
  • reviewed 2026-09-06T17:47:44.408Z sha 990579ed38128752fdc135eb06a1dc5bc01e1161 :: blocked before merge. :: none
  • reviewed 2026-09-06T18:00:28.582Z sha 0e8d1e50837f0b9a24b6552c4001ffac2d64117f :: needs maintainer review before merge. :: none

@roboclaw-bot

roboclaw-bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Collaborator Author

Visual review completed: I opened and inspected all four before/after images linked in the PR. They show the explicit sign-in-versus-publishing explanation and the generic action changing from Connect GitHub to Manage connections, while known account states and per-account actions remain intact. The images use synthetic accounts and do not claim live GitHub authorization. This addresses the image-inspection limitation in the ClawSweeper review.

CI also caught a test-only compatibility issue: direct Promise.withResolvers references were not exposed by the UI test compiler target. Commit 0e8d1e50837f0b9a24b6552c4001ffac2d64117f uses the repository's existing deferred helper instead, without changing production behavior or compiler settings. UI test types and all 44 focused tests pass locally; the complete candidate received a fresh scoped-clean P2 autoreview. The four Chromium E2E scenarios and inspected captures still cover the unchanged production patch.

The independent docs repair #140337 merged at 18:03 UTC on September 6. The UI branch was rebased onto main containing that repair; both commits are unchanged by range-diff and stable patch ID, and the contributor credit is preserved.

Final candidate: 9f06e401572769e45d71deb9a424f32644f27bad. CI run 34057083390 completed successfully on that exact head, with no failed or pending checks in the final read. Fresh UI test types, 44 focused tests, four Chromium E2E scenarios/build, and a new scoped-clean P2 autoreview also passed after rebase. ClawSweeper's 20:15 UTC review of this head lists no code/security findings and no before-merge items.

Proceeding through the repository-native guarded prepare/merge path; no checks or safeguards are being bypassed.

roboclaw-bot and others added 2 commits September 6, 2026 20:07
…counts

Clarify sign-in versus publishing access and retain explicit setup and retry
without presenting unloaded personal credentials as disconnected.

Worked on by:
- @fuller-stack-dev

Co-authored-by: fuller-stack-dev <[email protected]>
Keep the regression scenarios compatible with the UI test compiler's library
target without changing runtime behavior or compiler settings.

Worked on by:
- @fuller-stack-dev

Co-authored-by: fuller-stack-dev <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the fix/github-profile-connection-states branch from 0e8d1e5 to 9f06e40 Compare September 6, 2026 20:08
@roboclaw-bot
roboclaw-bot merged commit 9ca3a9e into main Sep 6, 2026
129 of 130 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot
roboclaw-bot deleted the fix/github-profile-connection-states branch September 6, 2026 20:19
vincentkoc added a commit that referenced this pull request Sep 6, 2026
…rol-ui

* origin/main:
  docs: remove the empty release-sections nav group (#140427)
  fix(tooling): omit Codex machine squash credit (#140420)
  chore(ui): refresh control ui locales (#140384)
  refactor(plugin-sdk): reuse native approval input contracts (#140415)
  fix: silent model WebSocket streams hang past the idle timeout (#140335)
  perf(ai): avoid unused text extraction for image results (#140409)
  fix(ui): distinguish failed GitHub status checks from disconnected accounts (#140333)
  refactor(cron): share runtime feedback schema fields (#140408)
  fix: avoid duplicate cloud worker teardown during recovery (#140377)
  fix(cli): show executable approval scope (#138386)
  refactor(ui): reuse shared requirement records (#140407)
  test(gateway): table-drive device token lifecycle checks (#140403)
  fix(chat): fence delayed history at terminal retirement (#140379)
  test(skills): compare large upload bytes natively (#140402)
  refactor(delivery): reuse the canonical rendered batch plan type (#140386)
  docs(start): repair the first-run path from landing page to first channel (#140390)

# Conflicts:
#	docs/.i18n/glossary.zh-CN.json
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 7, 2026
…counts (openclaw#140333)

* fix(ui): distinguish failed GitHub status checks from disconnected accounts

Clarify sign-in versus publishing access and retain explicit setup and retry
without presenting unloaded personal credentials as disconnected.

Worked on by:
- @fuller-stack-dev

Co-authored-by: fuller-stack-dev <[email protected]>

* test(ui): use shared deferred helper in GitHub status tests

Keep the regression scenarios compatible with the UI test compiler's library
target without changing runtime behavior or compiler settings.

Worked on by:
- @fuller-stack-dev

Co-authored-by: fuller-stack-dev <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: fuller-stack-dev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. 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