Repository navigation
fix(anthropic): forward selected profiles to Claude CLI - #112458
Conversation
# Conflicts: # src/agents/cli-runner/prepare.ts
…nto HEAD # Conflicts: # src/agents/cli-execution-auth.ts # src/system-agent/inference-route.ts # src/system-agent/setup-inference.ts # src/system-agent/system-agent.test-helpers.ts # src/system-agent/verified-inference.test.ts
# Conflicts: # src/system-agent/inference-route.ts
|
Updated head: Latest Claude Code compatibility follow-up:
Proof on the pushed candidate: 14 focused files / 582 tests green, targeted lint green, and final branch autoreview clean with no actionable findings. CI and security checks are now running. This does not merge the PR. |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(anthropic): forward selected profiles to Claude CLI This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Maintainer follow-up on the exact-head ClawSweeper artifact (
With that constraint recorded, both rank-up moves are addressed and no additional branch update or broad rerun is warranted for unrelated |
|
Merged via squash.
|
) * fix(anthropic): forward Claude CLI auth profiles * fix(system-agent): inject CLI auth route stores * fix(claude-cli): pass profile credentials by descriptor * fix(anthropic): repair selected profile CI coverage * fix(anthropic): preserve profile owner validation * test(system-agent): preserve selected profile fixtures * test(system-agent): narrow selected profile fixture * test(system-agent): resolve profile store merge * fix(anthropic): forward profiles to node Claude runs * fix(system-agent): reconcile profile route projection * test(system-agent): thread profile store through projection * fix(anthropic): make selected profile authoritative * fix(system-agent): type auth setup failures * fix(system-agent): type setup auth failures * style: format Claude profile maintenance * fix(anthropic): keep gateway credentials off nodes * fix(anthropic): clear ambient auth for selected profiles * fix(anthropic): secure paired-node Claude auth * fix(node-host): type Claude fd spawn streams * style(node-host): satisfy Claude spawn lint * fix(process): capture exit before secret delivery * fix(anthropic): preserve node-native Claude auth
Summary
claude-cliprofiles authoritative for turnsCloses #95612
Closes #107668
Testing
check:test-typesand targeted lint passedgit diff --checkpassedSecurity
Raw selected credentials are absent from the Claude child environment. OpenClaw writes one transient credential buffer to fd 3, Claude consumes and closes it before hooks or tool subprocesses run, and the buffer is zeroized after delivery. Paired-node runs serialize the selected credential only across the authenticated node RPC and convert it to the same fd contract at the node spawn boundary.
CLAUDE_CODE_SUBPROCESS_ENV_SCRUBis intentionally not used because Claude Code 2.1.217 changesbypassPermissionstodefaultwhen that variable is set.