Repository navigation
fix(anthropic): repair CLI compatibility during model discovery - #162989
fuller-stack-dev wants to merge 5 commits into
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. What this changesThe branch checks Claude Code model compatibility during discovery and execution, repairs verified local installations, and adds an authorized manual retry through a running Gateway. Review scores
Merge readiness⛔ Blocked before merge - 5 items remain This maintainer-authored PR remains useful: current main lacks the compatibility preparation, and the related OAuth work addresses a different path. Two introduced correctness gaps need repair. Priority: P2 Decision needed
Before merge
Findings
Agent review detailsHow this fits togetherThe model catalog combines provider access and runtime readiness into choices shown to CLI and Gateway clients. Anthropic now supplies installation compatibility facts, while core coordinates maintenance with active agent turns. flowchart TD
A[Model discovery or agent turn] --> B[Anthropic compatibility check]
B --> C[Selected Claude executable]
C --> D{Compatible version?}
D -->|No| E[Verified installer and idle maintenance]
E --> B
D -->|Yes| F[Ready model and execution]
D -->|Unresolved| G[Unavailable model and recovery guidance]
Technical reviewBest possible solution: Keep plugin-owned compatibility checks and idle maintenance, publish actionable recovery details, and preserve explicit model passthrough unless the stricter catalog policy is accepted. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the readiness gap and both review findings: join an in-progress compatibility check and cancel its second caller, or project a failed compatibility result through models.list. No target code was executed during this read-only review. Is this the best way to solve the issue? Partly: Anthropic-owned version policy and core maintenance admission are coherent, but shared-wait cancellation and public diagnostics are incomplete; unknown-model rejection also needs a compatibility decision. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 98d3fdae4449. Merge-risk optionsMaintainer options:
SecurityNone. EvidenceWhat I checked:
PR surfaceSource +1796, Tests +2294, Docs +45. Total +4135 across 54 files. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 1, 2026, 4:51 PM ET / 20:51 UTC. |
|
ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment |
|
What Problem This Solves
Fixes Claude CLI model selection failing when discovery advertises a model that the selected Claude installation is too old to run.
User Impact
Model discovery can update supported, user-owned native, npm and Homebrew Claude installations, then refresh the available model menu. Failed repairs show guidance and a retry deadline; ordinary reads reuse that result, and an explicit refresh retries once. Existing configuration stays unchanged.
Why This Change Was Made
Discovery and execution share compatibility facts and maintenance admission. Known incompatible models stop before execution; explicit unknown model IDs still reach Claude without being advertised as verified. Unsupported or unowned installations receive manual-update guidance.
The current integration also preserves rejected-launcher verification across restarts, cancellation and concurrent owners. Safely verified older models remain usable after a failed installer, and runtime updates renew native model menus.
Evidence
Current signed candidate:
86fa1301298864521d7cde08fd57c28dedbc66e3.pnpm buildpassed on the exact signed candidate in 25m 23.9s. Build metadata identifies86fa1301298864521d7cde08fd57c28dedbc66e3; source remained clean. Current source-blind public-command replay and its terminal recording are pending, and remain required before merge. Exact-head CI is queued; dependency and security-authority checks passed.afabe7af37605d7449063d5d5ecbd48847b352b1, retained with their original source identities. All 17 published objects were recovered and hash-verified; they are not claimed as final-head proof.No live Anthropic inference was used. Earlier public-command validation used a private external Claude fixture. Its unscoped synthetic-auth error also reproduced on unmodified canonical main. The pending current replay covers scoped compatibility and explicit selection with the same private fixture.