fix: stop honoring CODEX_MANAGED_CONFIG_PATH environment variable in production (#8762)

This commit is contained in:
Michael Bolin
2026-01-06 07:10:27 -08:00
committed by GitHub
parent 8858012fd1
commit 7ecd0dc9b3
9 changed files with 83 additions and 33 deletions

View File

@@ -93,12 +93,8 @@ pub(super) async fn read_config_from_path(
}
}
/// Return the default managed config path (honoring `CODEX_MANAGED_CONFIG_PATH`).
/// Return the default managed config path.
pub(super) fn managed_config_default_path(codex_home: &Path) -> PathBuf {
if let Ok(path) = std::env::var("CODEX_MANAGED_CONFIG_PATH") {
return PathBuf::from(path);
}
#[cfg(unix)]
{
let _ = codex_home;