From cb14eace483d91c8c0e41c9ef20dee014a936ac1 Mon Sep 17 00:00:00 2001 From: starr-openai Date: Tue, 5 May 2026 15:43:44 -0700 Subject: [PATCH] Limit TOML provider test constructor to tests Avoid keeping the test-only constructor in normal builds now that production construction uses the config-dir aware path. Co-authored-by: Codex --- codex-rs/exec-server/src/environment_toml.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/codex-rs/exec-server/src/environment_toml.rs b/codex-rs/exec-server/src/environment_toml.rs index cbbd01ff53..49b5508967 100644 --- a/codex-rs/exec-server/src/environment_toml.rs +++ b/codex-rs/exec-server/src/environment_toml.rs @@ -45,6 +45,7 @@ struct TomlEnvironmentProvider { } impl TomlEnvironmentProvider { + #[cfg(test)] fn new(config: EnvironmentsToml) -> Result { Self::new_with_config_dir(config, /*config_dir*/ None) }