diff --git a/codex-rs/core/src/config_loader/expansion.rs b/codex-rs/core/src/config_loader/expansion.rs index 420c1fa1a9..d2c133bd05 100644 --- a/codex-rs/core/src/config_loader/expansion.rs +++ b/codex-rs/core/src/config_loader/expansion.rs @@ -1,7 +1,6 @@ use std::collections::BTreeSet; use std::collections::HashMap; -use dirs::home_dir; use serde_json::json; use toml::Value as TomlValue; @@ -56,9 +55,6 @@ pub(crate) fn expand_key_for_matching_with_env(key: &str, env: &impl EnvProvider if let Some(home) = env.get(home_var) { return home; } - if let Some(home) = home_dir() { - return home.to_string_lossy().to_string(); - } return key.to_string(); } let mut warnings = Vec::new();