Repository navigation
fix(ui): distinguish failed GitHub status checks from disconnected accounts - #140333
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 6, 2026, 4:15 PM ET / 20:15 UTC. ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherControl 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +29, Tests +72. Total +101 across 5 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
|
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 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: Proceeding through the repository-native guarded prepare/merge path; no checks or safeguards are being bypassed. |
…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]>
0e8d1e5 to
9f06e40
Compare
|
Merged via squash.
|
…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
…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]>
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
Promise.withResolverscalls in the tests with the existingcreateDeferredCorehelper. The UI test-type lane and all 44 focused tests pass after this repair.9474ff67da1fc627d83261f06d98519e6ae082fbto 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.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 (synthetic accounts)
Worked on by:
Session: https://team.openclaw.ai/chat/roboclaw/dashboard/2ba50873-bd42-4e52-8215-613c1cca3d25