Repository navigation
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: stale review; fresh review needed. Summary Next step Review history (14 earlier review cycles; latest 8 shown)
|
0092a7d to
2a7e7bf
Compare
2a7e7bf to
e817401
Compare
|
Rebased and pushed exact head The PR body now contains:
The screenshots use only synthetic @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
This pull request has been automatically marked as stale due to inactivity. |
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.
|
@clawsweeper re-review Addressed the latest test-value feedback in 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. |
|
🦞👀 Re-review progress:
|
|
Updated this original Draft PR at 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 |
|
🦞👀 Re-review progress:
|
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
Addressed the latest test-value feedback at 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 |
|
🦞👀 Re-review progress:
|
|
This pull request has been automatically marked as stale after 7 days without qualifying human activity. |
|
Updated the original branch at 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 |
|
🦞👀 Re-review progress:
|
|
This pull request has been automatically marked as stale after 7 days without qualifying human activity. |
|
This pull request has been automatically marked as stale after 7 days without qualifying human activity. |
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
reconnectSupportedownership 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
9629838ec1aab5d0917828453335473bfa385847into prior published heada6519de67ed551eec6b3c16553f9d55043dd805a, 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
providerActionsgetter; 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
743062e30ff53765ea7b91edfba9e46bc119f720into 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.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
269903e49ecompleted 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-stalehold on this draft while the owner decision and live proof are pending.Previous main integration — 2026-11-06 (
269903e49e6db2a954c8716e5d43ce1544d8a1f6)Merged main
7349fd516c645ec49ca0708e94f8527988e2a9cfinto the original branch, preserving91c80e7d53ef01e63a01acb5110ddc07bbc39d92as 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:
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.
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 head1630a2cd749e6bf826b69f530d82956f03348dc0and actual main4d8806c8c2e297af9bc06f5cc73d4b0a3a8f949bas 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.
selectModelto 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.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.ac5c975754, not newly executed end-to-end tests on this test-only head.The latest hosted ClawSweeper review of
ac5c975754found 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 treec3e55272164f394fd183f75aa5bc2b2ade713867on 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.openclaw-modal-dialoghost, not failed authorization/default assertions. The captures now target its visible innerdialog; all original behavior assertions remain. The complete 9-case suite then passed.4716593e1944c7783bddcfcad1d88c4329405dcaf4651babc072aab0859b95a4.ac5c975754is 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:
Existing wizard receives the advertised device-code route:
Completion, Close, expand and status readback:
Retained earlier baseline and feedback context
The genuine before image below is from unmodified main
e39c150d7b9054a19d57f0d7b0613a4493978cebon 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.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-responsefailure 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.