mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
docs: add detailed comments explaining environment inheritance for Claude CLI auth
This commit is contained in:
parent
f877670143
commit
a4b0bc0229
1 changed files with 4 additions and 2 deletions
|
|
@ -191,9 +191,11 @@ function runProcess({
|
|||
process.env.CLAUDE_CODE_MAX_OUTPUT_TOKENS ||
|
||||
CLAUDE_CODE_DEFAULT_MAX_OUTPUT_TOKENS.toString(),
|
||||
},
|
||||
// Inherit the shell environment to ensure authentication tokens are available
|
||||
// IMPORTANT: These options are critical for Claude CLI authentication
|
||||
// extendEnv: true - Inherits parent process environment variables including ANTHROPIC_API_KEY
|
||||
// shell: true - Ensures proper environment variable expansion for authentication tokens
|
||||
// Without these, Claude CLI fails with "Invalid API key" even when properly authenticated
|
||||
extendEnv: true,
|
||||
// Use shell to ensure proper environment variable expansion
|
||||
shell: true,
|
||||
cwd,
|
||||
maxBuffer: 1024 * 1024 * 1000,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue