Repository navigation
fix(anthropic): prevent retired Claude CLI profile from breaking setup - #130225
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 10:30 PM ET / August 27, 2026, 02:30 UTC. ClawSweeper reviewWhat this changesThis PR makes Claude CLI setup and agent execution ignore the retired Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open: no blocking correctness finding surfaced, and current main still forwards the retired profile despite its native-login policy. The PR is a focused repair; exact-head CI and normal maintainer merge handling remain pending. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherOpenClaw resolves an auth profile before starting CLI-backed agent runs and setup inference. That selection is passed to the Claude CLI runner, which verifies the active runtime owner before setup persists the route. flowchart LR
A[Stored auth profile] --> B[CLI profile resolver]
B --> C{Retired native profile?}
C -->|yes| D[Claude CLI native login]
C -->|no| E[Forward compatible profile]
D --> F[Setup verification and agent run]
E --> F
Before merge
Agent review detailsSecurityNone. PR surfaceSource +7, Tests +117. Total +124 across 4 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk options
Maintainer options:
Technical reviewBest possible solution: Land the shared resolver repair once exact-head checks pass and maintainers accept the documented transition from the retired stored profile to the native Claude CLI account. Do we have a high-confidence way to reproduce the issue? Yes—seed Is this the best way to solve the issue? Yes—the shared resolver is the correct upstream owner because both setup inference and ordinary CLI execution consume its result, while final preparation already suppresses the same retired profile. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c75616186224. 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 (1 earlier review cycle)
|
1816bbf to
ba2886c
Compare
|
@clawsweeper re-review Fresh-main rank-up move addressed on exact head
No Rank-up move was skipped. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
ba2886c to
7f75113
Compare
|
Merged via squash.
|
openclaw#130225) * fix(anthropic): ignore retired Claude CLI auth profile * test(system-agent): expect native Claude CLI ownership
Related: #129052
What Problem This Solves
Fixes an issue where users upgrading from the retired
anthropic:claude-cliauth profile could complete a successful native Claude CLI inference check but still have setup fail with an inference-owner-changed error.Why This Change Was Made
Claude CLI execution already discards this retired OpenClaw-managed profile and delegates authentication to Claude's native login. Route-owner projection now applies the same bundled native-profile policy, so setup and execution agree on the active owner while normal non-retired Claude profiles continue to be forwarded.
doctor --fixstill removes the legacy profile as migration cleanup, but runtime correctness no longer depends on Doctor running first.User Impact
Upgraded users with a stale
anthropic:claude-cliprofile can activate and run Claude CLI normally through their existing native Claude login instead of being blocked by owner revalidation.Evidence
mainbasebdc0c924ce0; exact headba2886c427c.anthropic:claude-cliinstead of native/profile-free ownership.node scripts/run-vitest.mjs src/agents/cli-execution-auth.test.ts src/agents/cli-runner/prepare.test.ts— 127 passed.node scripts/run-vitest.mjs src/system-agent/setup-inference.test.ts src/system-agent/agent-turn.test.ts— 161 passed.node scripts/run-vitest.mjs src/commands/doctor-auth.deprecated-cli-profiles.test.ts— 7 passed.node scripts/check-changed.mjs -- src/agents/cli-execution-auth.ts src/agents/cli-execution-auth.test.ts src/system-agent/setup-inference.test.ts src/system-agent/agent-turn.test.ts— passed on exact head.CLAUDE_RETIRED_PROFILE_FIXEDfromclaude-cli/claude-opus-5.