Repository navigation
refactor(auth): retire superseded login helpers - #144533
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: blocked before merge. Reviewed September 10, 2026, 8:59 PM ET / September 11, 2026, 00:59 UTC. ClawSweeper reviewWhat this changesRemoves private credential-test access, consolidates auth regression tests, and moves Models-page settings and probe helpers into the existing configuration-mutation module. Merge readiness⛔ Blocked before merge - 3 items remain This remains a distinct, coherent cleanup of the merged login work, with no introduced correctness defect found. The protected PR requires confirmation of the requested refactor scope and listed auth-owner involvement. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s credential readers and auth-profile owners supply credentials to model execution. The Models page translates user settings into Gateway-owned configuration and credential operations. flowchart LR
A[External CLI credentials] --> B[Credential readers]
B --> C[Auth profile owners]
C --> D[Model execution]
E[Models page settings] --> F[Configuration mutation helpers]
F --> G[Gateway configuration and credentials]
G --> C
Decision needed
Why: The refactor is technically coherent, but repository policy requires explicit sponsorship and restricted-path owner involvement that the available records do not establish. Before merge
Agent review detailsSecurityNone. PR surfaceSource -14, Tests -1700, Other -1. Total -1715 across 21 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Complete the owner-approved retirement while preserving the existing credential readers, auth boundaries, and Gateway-owned settings behavior. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR requests structural retirement and explicitly claims no new functional fix; no introduced failing behavior was established. Is this the best way to solve the issue? Yes: reusing the public credential reader and existing Models mutation owner is a narrow consolidation that preserves the inspected production contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d841e35101d5. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
This is the bounded follow-up I explicitly requested as the author of #136257. The work order authorizes retiring the named legacy login helpers, moving every still-live test invariant to its current owner, running the listed product proofs, and landing this PR. The product decisions carried forward from #136257 are approved. The retirement keeps credential authority, persistence, consent behavior, and the live reader contracts unchanged. It retains the directive helpers because their prepared-label and endpoint replacement is missing. The required local review of head CI has completed. The startup-size failure also fails on the exact base. The plugin-settings failure is a pre-existing reconnect timing gap: an ordinary base run passes, while controlled response scheduling on unchanged base production source reproduces the same count-1 assertion failure during loading and confirms message recovery afterward. Neither failure is repaired or hidden by this PR; both are documented for the approved guarded exception. |
|
landpr-approve-unrelated-red |
|
Thanks @obviyus! Proof: Real Telegram failure recovery and the delivered Sign in button open the provider picker. All 13 Models browser cases passed, including real Gateway API-key edit/removal with CLI state parity and settings readback after reload. Focused authentication and recovery checks passed; the required review had zero findings and cleared security.
Merged as
The aggregate |
Retire private CLI credential test access and consolidate Models page helpers under the existing mutation owner. Move live refresh and external-auth assertions to their current owners, remove stale test registrations, and retain readers/directive paths whose replacement contracts are absent. Validated with focused auth, login recovery and Models tests, real Telegram recovery and Sign in actions, real Gateway API-key edit/removal, browser settings readback, and independent source/product review. Related: openclaw#136257. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Completed login changes left obsolete test access and scattered Models page helpers.
Why This Change Was Made
Remove the private credential test bridge and use the public reader. Consolidate credential refresh assertions and Models defaults, behavior, and probe handling under their existing owners. Remove obsolete registrations while retaining still-required credential and directive readers.
User Impact
No user-visible behavior change is intended. Login recovery and Models credential/default settings keep their existing contracts. No schema or configuration change.
Evidence
Selected credential and refresh tests passed; deliberate identity corruption failed both old and relocated assertions. Login recovery suites and 55 Models owner tests passed. All 13 browser cases passed, including key edit/removal and persisted model settings after reload. Telegram delivered provider-neutral recovery after a simulated authentication failure; both login actions opened the provider picker. The UI build reported an advisory startup-size overage.
Related: #136257, #144329, #144420, #143588.