Skip to content

fix(ui): let expired OAuth profiles reconnect - #150688

Draft
louisfy wants to merge 11 commits into
openclaw:mainfrom
louisfy:codex/xai-oauth-reconnect-v2
Draft

louisfy wants to merge 11 commits into
openclaw:mainfrom
louisfy:codex/xai-oauth-reconnect-v2

Conversation

@louisfy

@louisfy louisfy commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Closes #148323.

Supersedes #148325. Still Draft: conflict repair, public-code review and synthetic browser validation are complete; real expired-xAI authorization and credential persistence have not been exercised.

What Problem This Solves

An expired OpenClaw-managed OAuth account in Models has no profile-level action to restart its provider's advertised authorization flow.

User Impact

Reconnect opens the existing Gateway-owned OAuth/device-code wizard for an eligible expired account, then refreshes its status after completion. It does not change the active model. The recorded test demonstrates that UI path with fictional data, not compatibility with the real xAI service.

Why This Change Was Made

The existing login runner already owns authorization, mutation admission, cancellation and stale-result handling. This change reuses that owner instead of adding a credential store or authentication RPC.

Reconnect requires an expired OAuth profile, a positive Gateway reconnectSupported ownership capability, exactly one advertised OAuth/device-code route, and existing write/busy admission. Config display provenance and logout eligibility are not ownership authority. External or inherited profiles, missing local-ownership metadata and ambiguous routes fail closed; the Gateway excludes external IDs even if they overlap the local set. Existing logout behavior is unchanged.

Conflict repair — 2026-10-25

Conflict-repair head: ac5c975754f91d342e1cbe6de6557954c49f01c6.
Merged actual upstream main 9629838ec1aab5d0917828453335473bfa385847 into prior published head a6519de67ed551eec6b3c16553f9d55043dd805a, preserving both parents and the original PR.

Resolved the two conflicts in the login controller and its browser suite. Reconnect now lives in current main's inline providerActions getter; removed single-use helper wrappers were not restored. The current model-access scenarios and their exact request/no-activation assertions are retained. The contribution remains 11 files (+518/-44) against that main commit; this is not a new feature expansion.

Evidence

Main integration on November 21, 2026 (063734fe80c15c9aa79ac3311bd3185653176ee3)

Integrated 743062e30ff53765ea7b91edfba9e46bc119f720 into the existing branch. Model profile ordering is retained. An expired account with an eligible direct reconnect uses a single Reconnect entry. Profiles that qualify for the upstream generic recovery still receive Sign in again when no direct route is available. The follow-up moves the ownership cases into the existing test fixture to keep the Gateway test below its lint limit.

  • 102 focused tests passed across the Gateway and Models UI. The 55 Gateway tests were rerun after the test-only follow-up. Targeted type-aware Oxlint, formatting, and Control UI English catalog verification passed.
  • Chromium with a synthetic Gateway: the expired-xAI Reconnect flow passed from visible action through the advertised authorization route and refreshed profile state. Seven of eight browser cases passed. The other case, “anchors text sign-in actions while retaining the stable dialog height,” timed out waiting for the same Submit control on both untouched main and this candidate.
  • Isolated Codex autoreview of the integrated production patch and supplied public contracts completed with no actionable P0–P2 findings. The final follow-up changes test fixtures and their caller only.

Real xAI account authorization, credential persistence, and real-provider status readback still require separate validation. The PR remains Draft.

Hosted review and remaining decision — 2026-11-14

The ClawSweeper review of 269903e49e completed on November 6 with no actionable code findings. The CI gate was skipped while this PR remained Draft.

Models and auth owners still need to decide when credential health warrants interactive sign-in. Real expired-xAI authorization, credential persistence, and refreshed status with the same active model are unverified. The recorded browser proof uses a mocked Gateway and fictional accounts. The linked report's administrative closure did not record a fix. Please consider a no-stale hold on this draft while the owner decision and live proof are pending.

Previous main integration — 2026-11-06 (269903e49e6db2a954c8716e5d43ce1544d8a1f6)

Merged main 7349fd516c645ec49ca0708e94f8527988e2a9cf into the original branch, preserving 91c80e7d53ef01e63a01acb5110ddc07bbc39d92 as a parent. The account-action conflict now retains both the existing API-key Replace action and the OAuth Reconnect action. Browser coverage follows main's current native-permissions step and completion copy. Shared completion-model selection stays in the existing login-provider module; no separate login state or model activation is introduced.

Validation on this candidate:

  • 60/60 UI tests across six owning suites, 53/53 Gateway auth-status tests, and 7/7 Chromium browser tests passed. The browser suite builds the production UI and uses a mocked Gateway with fictional expired/restored xAI profiles and device code. It exercises Reconnect, wizard completion, restored-profile readback, and ordinary login/native-permissions siblings.
  • UI and targeted Gateway typechecks, typed UI/core lint, formatting, English i18n verification, diff checks, and the test-line budget passed. The scoped allocation records the contribution's 416 net test lines; the shared budget baseline is unchanged.
  • Fresh independent Codex review of all 12 public contribution files plus the public owner contracts completed P0–P2 scoped-clean (1/1). The reviewer did not execute tests; the runs above are separate local evidence.
  • Initial checks exposed an over-budget login controller, outdated browser completion text, and a capture aimed at a non-painted modal host. These were corrected; the final frozen candidate passed without raising limits, extending timeouts, or weakening behavior assertions.
  • Reviewed/committed tree: 838f72dc9d988039e236f3f934efe9598abf88ea. Contribution-file SHA-256: ec8adae779256f821b57ce473f8920fc4f6ac8e25cb85af70abcdc939428226f.

Remaining gates: fresh hosted CI/review is separate from these local results. The maintainer decision on routine expiry versus credential-health-driven reconnect eligibility remains open. Real expired-xAI authorization, credential persistence, and real-provider readback have not been performed; the PR remains Draft. No real accounts, private user data, credentials, workflow secrets, or Orca source were used. Historical captures and runs below retain their original commit/date scope.

Latest review follow-up — 2026-10-27

Current head: 91c80e7d53ef01e63a01acb5110ddc07bbc39d92 (two test files, +4/-20; production behavior unchanged).

Addressed the latest ClawSweeper test-value feedback: remove the standalone config-bound positive-presence component case. The stronger registered-page config-bound scenario still exercises the advertised route, completion, Close, and restored-status readback; external/config/inherited/saved missing-ownership controls and the inherited/removable overlap remain.

  • Both affected files pass 30 tests (Vitest 2.68s; wrapper wall time 4.07s), plus targeted typed lint, formatting and diff checks.
  • The initial two-file run had three immediate button-enabled assertion failures (27 passed / 3 failed). The tests now await the same observable enabled condition before clicking, preserving the existing async configuration-owner admission contract. No timeout, production code, ownership guard, auth-route assertion or readback assertion changed.
  • Fresh canonical independent P0–P2 review of this two-file delta completed scoped-clean, 1/1 pass with complete usage reporting. It assessed the diff and public configuration-owner/harness context; runtime coverage comes from the separate executed tests.
  • The prior 59-UI/51-Gateway integration proof and production review remain attributed to f0104df14, whose production bytes are unchanged. They are not claimed as additional new-head runs. New-head hosted CI and review are separate.

Still Draft: the latest advisory also asks the maintainer to decide whether Reconnect should apply to routine access-token expiry or only unusable-sign-in credential facts, preserving automatic-refresh messaging. That product decision and authorized real-Gateway expired-xAI recovery through persistence/readback remain unresolved. This test-only follow-up does not change the proposed eligibility rule or perform real account authorization. No private data, real logs or secrets were used or shared; maintainer edits/secrets access remain disabled.

Current main integration — 2026-10-27

Current integration head: f0104df14db38c1c838d88a52d9eb49648e0a922. This merge preserves original PR head 1630a2cd749e6bf826b69f530d82956f03348dc0 and actual main 4d8806c8c2e297af9bc06f5cc73d4b0a3a8f949b as its two parents.

Resolved the login-controller conflict while preserving main's new provider-brand forwarding and its inlined completion-model selection. The shared sign-in start has two production callers (picker and Reconnect); both pass the Gateway-advertised brand, and Reconnect still does not request model activation. The obsolete single-use completion helper is removed rather than restored.

  • 59 UI tests across five files pass on the integrated candidate (latest wrapper wall time 13.06s, Vitest 10.34s), covering the registered page, existing login/activation/default selection, completion refresh, profile controls and fail-closed reconnect ownership.
  • Two registered-page logo regressions fail before brand forwarding for the intended missing provider badge, then pass after repair. Both the ordinary picker and direct Reconnect path retain main's Grok/xAI brand. The intended red run was 6.23s wall time; earlier fixture setup and busy-loop attempts were not counted as product proof.
  • The existing 51 Gateway auth-status/logout tests pass (120.94s wrapper wall time, including first worker compilation). These use fictional configuration/credentials and exercise production auth-status projection, not a real provider authorization.
  • Full UI and targeted Gateway production typechecks, targeted typed lint, formatting, i18n verification, and contribution diff checks pass. The local default Bun attempt could not start because the supported macOS SQLite library was unavailable; the documented Node 24.22.1 test mode was used without changing guards. An interim extraction widened selectModel to boolean; formal types and independent review caught it, and an explicit { selectModel?: true } annotation resolves it. The final types and review pass; no guard, baseline or assertion was weakened.
  • Fresh canonical independent P0–P2 review of the final public candidate completed scoped-clean, 1/1 pass with complete usage reporting, after the type repair. Review did not execute project code or validate a real account.
  • Frozen contribution diff SHA-256 against that main: 9b215c997491268708a2835b9fca0ef2900829e931e9071ba5105eef54cacf09. Only the original 11 contribution files differ from main.

Still Draft: current-head checks report 13 successes and 85 skips, with no failed or pending check. The skipped Draft lanes are not passing test proof. Hosted review is still in progress; independent local review above is complete. Prior Chromium captures and execution evidence below remain tied to their recorded older heads; no new production-browser capture, real expired-xAI authorization, credential replacement/persistence, or real-provider status readback was performed for this integration. Maintainer product acceptance and authorized live recovery remain open. No private Orca code, personal notes/configuration, real logs or secrets were used; maintainer edits/secrets access remain disabled.

Historical validation and captures

Latest review follow-up — 2026-10-25

Current PR head: 1630a2cd749e6bf826b69f530d82956f03348dc0.

Addressed the latest ClawSweeper test-value feedback with a test-only change (+2/-15, one file): remove seven duplicate missing-ownership variants from the component-level fixture loop. The registered-page tests still cover missing capability for external/config/inherited/saved profiles and the inherited/removable overlap. The retained non-expired and non-OAuth controls now have reconnectSupported: true, so each exercises its intended status/type guard rather than passing because ownership is absent. Write-permission, busy-state, credential-owner routing and unavailable/ambiguous-route checks are retained.

  • 27/27 focused UI tests pass across the changed component test and registered-page reconnect suite (Vitest 4.66s; wrapper wall time 8.08s). No hosted CI time is claimed for this new head.
  • Targeted UI/E2E typecheck, typed lint of the changed test, formatting and diff checks pass.
  • Fresh isolated independent P0–P2 review of this test-only delta is scoped-clean, with complete usage reporting. It assessed the full public component and overlapping page tests; it did not execute project code.
  • No production code, Gateway behavior, auth flow or browser scenario changed. The 9/9 browser captures and prior production-contract evidence below are reused unchanged-input evidence from ac5c975754, not newly executed end-to-end tests on this test-only head.

The latest hosted ClawSweeper review of ac5c975754 found no actionable correctness defects, but still requires maintainer product acceptance of the added account-row action and authorized real-Gateway expired-xAI recovery through persistence/readback. Those requirements are not claimed resolved. Hosted Codex's separate attempt failed with an unknown service error, not a code verdict; the independent local workflow review above is a separate result. Keep Draft and maintainer edits disabled; no real account authorization is performed.

Retained conflict-repair validation

The following conflict-repair results were recorded at ac5c975754f91d342e1cbe6de6557954c49f01c6, using merged candidate tree c3e55272164f394fd183f75aa5bc2b2ade713867 on task-only Node 24.22.1 with current main's frozen dependency lock, including Solid rc.18. The frozen-lock install passed; no dependency or lockfile change was authored.

  • The existing Gateway auth-status/ordering/logout test file and 55 tests across five relevant UI files passed in two Vitest shards (57.89s). They cover positive local/config-local ownership and fail-closed external, inherited, overlapping and missing-metadata cases, alongside existing login, completion and refresh behavior.
  • Recorded production-UI Chromium E2E: 9/9 passed (Vitest 240.45s; test file 136.196s; production UI build 91s). This includes Expired → Reconnect → fictional device-code wizard → completion → Close → expand → restored-account readback, plus browser-callback and all three existing model-access/default-preservation cases. Auth routing is exact; no model activation or config patch is introduced.
  • The first recorded attempt was 6 passed / 3 failed, not hidden or counted as a passing run. All three failures were screenshot-surface checks against the non-rendering openclaw-modal-dialog host, not failed authorization/default assertions. The captures now target its visible inner dialog; all original behavior assertions remain. The complete 9-case suite then passed.
  • Targeted Gateway/UI/E2E types, typed lint of all 11 contribution files, formatting, diff checks, English i18n verification and the max-lines/environment-count ratchet pass. One extra typecheck attempt encountered an active dist-artifact lock from the concurrent lint owner; it was rerun successfully after that owner finished, without deleting the lock or bypassing ownership.
  • Fresh isolated Codex P0–P2 independent review: scoped-clean, two completed passes with complete usage reporting. It received the public candidate plus full public Gateway facts/config/runtime-ownership and login-wizard contracts. This static review did not execute the tests or validate real-provider credential replacement.
  • Contribution diff SHA-256 against the merged main: 4716593e1944c7783bddcfcad1d88c4329405dcaf4651babc072aab0859b95a4.
  • GitHub confirmed conflict-repair head ac5c975754 is mergeable. Current-head hosted CI/review results are separate; Draft-skipped tests are not passing CI proof.

Conflict-repair browser captures — production unchanged

Real Chromium captures from the production UI. Emails, profiles, URLs and the displayed XAI-TEST code are fictional. These demonstrate the UI flow, not a real provider login.

Expired account offers Reconnect:

Merged candidate: expired fictional xAI account with Reconnect

Existing wizard receives the advertised device-code route:

Merged candidate: fictional XAI-TEST device-code wizard

Completion, Close, expand and status readback:

Merged candidate: restored fictional xAI account

Retained earlier baseline and feedback context

The genuine before image below is from unmodified main e39c150d7b9054a19d57f0d7b0613a4493978ceb on 2026-10-23, not the newly merged 9629838 baseline and not DOM editing. It shows the same fictional expired-account scenario without Reconnect. The earlier baseline 1/1 test, 117 focused tests and earlier 9/9 browser run belong to the Oct23 candidate, not additional unique tests for today's head.

Historical before: unmodified Oct23 main without Reconnect

The Oct23 ClawSweeper review had no actionable code findings, but explicitly required real-Gateway/expired-xAI recovery, persistence and readback proof. That gap remains. Its old auto-response failure was a Barnacle label-sync GET returning GitHub HTTP502 (old job); that is historical evidence, not a classification of any new-head failure.

Safety Boundary and Remaining Proof

No real account authorization, paid model calls, personal notes, private Orca source, personal configuration, genuine logs, tokens or secrets were used or sent for review. Public GitHub noreply attribution is retained; maintainer edits remain disabled. No workflow permissions or secrets access were expanded.

Still unverified: completion against the real xAI service using an actually expired credential, credential persistence and real-provider status readback. That live operation has not been authorized. Keep this PR Draft; do not treat synthetic screenshots, local tests or static review as that missing proof.

@clawsweeper

clawsweeper Bot commented Sep 17, 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 triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. size: M labels Sep 17, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 269903e49e6db2a954c8716e5d43ce1544d8a1f6, but the PR head is now 063734fe80c15c9aa79ac3311bd3185653176ee3. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (14 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-21T10:35:05.415Z sha e817401 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-23T07:39:18.782Z sha 1f2628d :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-23T08:35:11.144Z sha a6519de :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-25T02:55:28.781Z sha ac5c975 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-25T03:14:14.563Z sha 1630a2c :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-27T07:31:53.572Z sha f0104df :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-27T10:20:57.964Z sha 91c80e7 :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-06T05:07:19.087Z sha 269903e :: needs real behavior proof before merge. :: none

@louisfy
louisfy force-pushed the codex/xai-oauth-reconnect-v2 branch from 0092a7d to 2a7e7bf Compare September 17, 2026 07:03
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Sep 17, 2026
@louisfy
louisfy force-pushed the codex/xai-oauth-reconnect-v2 branch from 2a7e7bf to e817401 Compare October 7, 2026 07:14
@louisfy

louisfy commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Rebased and pushed exact head e817401167f5f0eabc0d2799ea872e0098f71227. GitHub currently reports the PR mergeable against the moving main target.

The PR body now contains:

  • 71 focused UI/unit passes and 8 browser Mock-Gateway E2E passes,
  • pre-fix red / post-fix green evidence,
  • full changed-file type, format, i18n, guard, and dead-export checks,
  • sanitized before-action, device-code recovery, and restored-state screenshots.

The screenshots use only synthetic .invalid identities and the fake XAI-TEST code. No real credential, OpenClaw profile, endpoint, or Orca data was used. The only remaining proof boundary is a maintainer-authorized live xAI OAuth recovery run with a disposable account.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Oct 7, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Oct 21, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 21, 2026
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Oct 23, 2026
Address the latest PR review by removing repeated missing-ownership fixtures already covered through the registered page. Keep disabled-state and route checks, and give non-expired/non-OAuth controls positive ownership so each protects its intended guard. Production behavior is unchanged. Focused 27-case UI proof, targeted types/lint/format and isolated P0-P2 review pass.

louisfy commented Oct 25, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Addressed the latest test-value feedback in 1630a2cd749e6bf826b69f530d82956f03348dc0 (+2/-15, one test file; production code unchanged). Removed seven component-level source/ownership variants that all passed on the same missing-capability guard. Registered-page missing-ownership and inherited/removable coverage remains intact. The two retained non-expired/non-OAuth controls now carry positive ownership so they test their own guards; write-permission, busy, exact credential-owner and route checks remain.

The original PR body now distinguishes this follow-up from prior-head proof. Focused component/page tests: 27/27 pass (Vitest4.66s; wrapper8.08s); targeted types, typed lint, format/diff pass; fresh isolated P0–P2 review of this test-only delta is scoped-clean. Existing9/9 synthetic browser evidence is unchanged-input proof from ac5c975, not relabeled as a new execution.

Keep Draft: maintainer product acceptance and authorized real-Gateway expired-xAI recovery/persistence/readback remain unfulfilled. No real authorization, personal data, private Orca code, genuine logs or secrets were used. Maintainer edits and secrets access remain disabled. Hosted Codex's separate service error is not claimed as a passing review.

@clawsweeper

clawsweeper Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot removed the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 25, 2026

louisfy commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

Updated this original Draft PR at f0104df14db38c1c838d88a52d9eb49648e0a922, merging actual main 4d8806c8c2e297af9bc06f5cc73d4b0a3a8f949b and resolving the login-controller conflict.

The integration preserves main's new provider-brand forwarding for both picker and Reconnect, plus its inlined completion selection. Two registered-page brand regressions fail before the repair and pass afterward. Current local proof: 59 UI + 51 Gateway tests, UI/targeted Gateway types, typed lint, format/i18n/diff checks, and completed fresh canonical P0–P2 review. The final review and formal typecheck confirm the explicit selectModel literal type; initial environment/fixture/type failures are disclosed in the updated body.

Keep Draft. Maintainer product acceptance and authorized real expired-xAI recovery through credential persistence/readback remain unfulfilled. No new real account authorization, production-browser capture, private source/data/configuration, genuine logs or secrets were used. Older captures retain their original head labels. Maintainer edits and secrets access remain disabled; new-head CI is separate.

@clawsweeper re-review
@codex review

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

An unknown error occurred
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Oct 27, 2026

louisfy commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

Addressed the latest test-value feedback at 91c80e7d53ef01e63a01acb5110ddc07bbc39d92 (+4/-20, two test files; production unchanged).

Removed the redundant config-bound component positive case while retaining registered-page config-bound recovery through completion/readback and all ownership/permission negative controls. The focused two-file run also exposed immediate assertions before async button readiness; those tests now await the same enabled condition before clicking, with no timeout or assertion weakening.

Both files pass all 30 tests (4.07s wrapper wall time), targeted typed lint/format/diff checks pass, and fresh canonical independent P0–P2 review of this delta is scoped-clean. The body distinguishes this follow-up from f0104df's production proof and discloses the initial test failures.

Keep Draft: maintainer direction on routine token expiry versus unusable-sign-in eligibility and authorized real-xAI recovery/persistence/readback remain open. No real authorization, private source/data/configuration, genuine logs or secrets were used; maintainer edits/secrets access remain disabled. Current-head hosted CI is separate.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale after 7 days without qualifying human activity.
Without new human activity, Barnacle may close it as not planned 7 days after this message was posted. This is administrative inactivity cleanup, not a claim that the problem is fixed.
A human update restarts the inactivity clock; a new PR head also restarts it. A maintainer can add no-stale for a durable hold, or bad-barnacle to suppress Barnacle. Remove the hold when work can resume.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Nov 4, 2026

louisfy commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Updated the original branch at 269903e49e6db2a954c8716e5d43ce1544d8a1f6 by merging main 7349fd516c645ec49ca0708e94f8527988e2a9cf. GitHub now reports it mergeable. The account-action conflict retains main's API-key action and this PR's ownership-gated Reconnect; the browser suite follows current native-permissions and completion behavior.

Current candidate proof: 60/60 UI tests, 53/53 Gateway tests, 7/7 production-UI Chromium tests with a mocked Gateway, targeted types/typed lint/format/i18n/test-budget checks, and a fresh completed independent P0–P2 review (scoped-clean). The PR body records the exact candidate tree, final results, and corrected initial check failures. Earlier captures remain labeled with their original scope.

Keep Draft: the owner's reconnect-eligibility decision and real expired-xAI authorization/persistence/readback are still open. No real authorization, private source/data/configuration, genuine logs, or keys were used; maintainer edits remain disabled. Fresh hosted CI is separate from local proof.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot removed the stale Marked as stale due to inactivity label Nov 6, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale after 7 days without qualifying human activity.
Without new human activity, Barnacle may close it as not planned 7 days after this message was posted. This is administrative inactivity cleanup, not a claim that the problem is fixed.
A human update restarts the inactivity clock; a new PR head also restarts it. A maintainer can add no-stale for a durable hold, or bad-barnacle to suppress Barnacle. Remove the hold when work can resume.

@openclaw-barnacle openclaw-barnacle Bot added stale Marked as stale due to inactivity and removed stale Marked as stale due to inactivity labels Nov 13, 2026
@clawsweeper clawsweeper Bot removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Nov 21, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale after 7 days without qualifying human activity.
Without new human activity, Barnacle may close it as not planned 7 days after this message was posted. This is administrative inactivity cleanup, not a claim that the problem is fixed.
A human update restarts the inactivity clock; a new PR head also restarts it. A maintainer can add no-stale for a durable hold, or bad-barnacle to suppress Barnacle. Remove the hold when work can resume.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Nov 28, 2026

This branch has not been deployed

No deployments
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 gateway Gateway runtime P2 Normal backlog priority with limited blast radius. size: L stale Marked as stale due to inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Expired xAI OAuth profile cannot reconnect from Models

1 participant