Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 7:25 AM ET / 11:25 UTC. ClawSweeper reviewWhat this changesThe PR lets full and provider-filtered model lists report configured native CLI authentication while leaving the default list non-blocking and unknown for that status. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep open. The PR has a coherent shared-boundary fix, preserves the default list’s lazy behavior, and includes exact-head native CLI proof; it remains necessary because current main retains the earlier standalone path. Priority: P2 Review scores
Verification
How this fits togetherModel listings combine configured model routes, prepared registry data, and read-only authentication facts into availability rows. The same shared evaluator feeds both standalone CLI output and Gateway model catalog projections. flowchart LR
Config[Model configuration] --> Registry[Prepared model registry]
Metadata[Plugin metadata] --> Auth[Native CLI auth evaluation]
Registry --> Detail[Detailed model listings]
Auth --> Detail
Detail --> Output[CLI and Gateway availability output]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +154, Tests +294, Docs 0. Total +448 across 13 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the shared evaluator and detailed-only probe boundary, with the bounded native-status behavior documented and validated before merge. Do we have a high-confidence way to reproduce the issue? Yes. The PR body supplies an exact-head isolated native Claude CLI run showing a logged-in status, a detailed row changing to available true, and the default row remaining unknown. Is this the best way to solve the issue? Yes. The patch carries a scoped prepared fact into the existing shared auth evaluator and reuses it for Gateway projection, rather than duplicating provider-specific logic in the CLI command. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0757afb713b3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
930d614 to
99a7c80
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
99a7c80 to
5f3c81a
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
0be5439 to
51801f4
Compare
|
Added the requested real after-fix proof to the PR body and rebased onto current On exact head Exact-head focused tests: 58/58. Exact-head CLI build: passed. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
51801f4 to
20534b2
Compare
|
Thanks @Marvinthebored! Proof: With a real logged-in Claude CLI, both provider-filtered and
Example
|
Detailed model listings now use the provider-owned native CLI authentication result for configured CLI routes. Anthropic API credentials no longer satisfy a separate Claude CLI route. The default model list remains lazy and starts no native authentication probe. Co-authored-by: Marvinthebored <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
Related: #130673
AI-assisted with OpenAI Codex. I understand the change and reviewed the final diff. Session log.
What Problem This Solves
A configured Anthropic model can run through the native Claude CLI without an Anthropic API key. Detailed standalone model listings did not read the provider-owned native login result, so a working Claude login appeared as
Auth -/available: null.The default list must stay lazy. Only
models list --alland provider-filtered views may run the native authentication probe.Root cause
The standalone detailed-list path discarded prepared native-runtime authentication modes before it built the shared availability index.
The first repair also exposed a second owner bug: ambient Anthropic API credentials could populate the aliased
claude-clicredential slot before provider-owned synthetic authentication ran. The shared evaluator could then accept the provider result without an authoritative Claude CLI result.Fix
This changes status reporting only. It does not change model routing or execution.
Evidence
The proof used the real installed Claude CLI, isolated OpenClaw state, and an exact-head build.
Later
maincommits through27c9bbe5ec5098d96f091b2edbac81441df0b07adid not touch the repaired owner files before the final push.Validation
pnpm check:changedpassed against the pinned merge base.pnpm buildpassed.Change shape
The diff removes the Gateway-local CLI-runtime fallback and uses one shared availability projection. It also removes a duplicate auth-index test and a broad partial module mock.
Production is net +181 lines. Tests are net +332 lines. The production growth adds the approved explicit-view capability and the owner boundary that prevents ambient provider credentials from becoming native CLI authentication facts.