mirror of
https://github.com/openai/codex.git
synced 2026-10-29 19:08:43 +00:00
[codex] Don't propagate RUST_LOG to subprocesses by default
Signed-off-by: William Woodruff <ww@openai.com>
This commit is contained in:
@@ -82,6 +82,12 @@ where
|
||||
EnvironmentVariablePattern::new_case_insensitive("*KEY*"),
|
||||
EnvironmentVariablePattern::new_case_insensitive("*SECRET*"),
|
||||
EnvironmentVariablePattern::new_case_insensitive("*TOKEN*"),
|
||||
// Harnesses like Codex Desktop and the VS Code extension
|
||||
// will spawn the app-server with `RUST_LOG=warn` by default,
|
||||
// which can then cause unexpected behavior in subprocesses.
|
||||
// This removes it by default; users can still explicitly
|
||||
// include it via overrides.
|
||||
EnvironmentVariablePattern::new("RUST_LOG"),
|
||||
];
|
||||
env_map.retain(|k, _| !matches_any(k, &default_excludes));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user