mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 12:40:44 +00:00
[ide-mode] Wire up env variables to sandbox (#5804)
This commit is contained in:
parent
407393b128
commit
5ec4ea9b4d
2 changed files with 21 additions and 1 deletions
|
|
@ -614,6 +614,17 @@ export async function start_sandbox(
|
|||
args.push('--env', `COLORTERM=${process.env.COLORTERM}`);
|
||||
}
|
||||
|
||||
// Pass through IDE mode environment variables
|
||||
for (const envVar of [
|
||||
'GEMINI_CLI_IDE_SERVER_PORT',
|
||||
'GEMINI_CLI_IDE_WORKSPACE_PATH',
|
||||
'TERM_PROGRAM',
|
||||
]) {
|
||||
if (process.env[envVar]) {
|
||||
args.push('--env', `${envVar}=${process.env[envVar]}`);
|
||||
}
|
||||
}
|
||||
|
||||
// copy VIRTUAL_ENV if under working directory
|
||||
// also mount-replace VIRTUAL_ENV directory with <project_settings>/sandbox.venv
|
||||
// sandbox can then set up this new VIRTUAL_ENV directory using sandbox.bashrc (see below)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue