Commit ebc3ab8
committed
fix(acp): strip provider API keys from ACP child process env
Provider API keys (e.g. OPENAI_API_KEY) injected by the auth system were
leaking into ACP child processes. This caused Codex CLI to detect the env
var and overwrite ~/.codex/auth.json, replacing OAuth credentials with
apikey mode.
The existing stripKeys mechanism only removed skill-injected env vars
(getActiveSkillEnvKeys). This change also strips all known provider API
key env vars (listKnownProviderEnvApiKeyNames) so ACP agents use their
own configured authentication instead of inheriting leaked credentials.
Fixes the same class of issue described in #36280.1 parent 6b87489 commit ebc3ab8
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | | - | |
463 | | - | |
464 | | - | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
465 | 471 | | |
466 | 472 | | |
467 | 473 | | |
| |||
0 commit comments