diff --git a/codex-rs/core/src/config_loader/mod.rs b/codex-rs/core/src/config_loader/mod.rs index 58c3457c44..c05825db89 100644 --- a/codex-rs/core/src/config_loader/mod.rs +++ b/codex-rs/core/src/config_loader/mod.rs @@ -55,6 +55,11 @@ const DEFAULT_REQUIREMENTS_TOML_FILE_UNIX: &str = "/etc/codex/requirements.toml" /// (*) Only available on macOS via managed device profiles. /// /// See https://developers.openai.com/codex/security for details. +/// +/// When loading the config stack for a thread, there should be a `cwd` +/// associated with it such that `cwd` should be `Some(...)`. Only for +/// thread-agnostic config loading (e.g., for the app server's `/config` +/// endpoint) should `cwd` be `None`. pub async fn load_config_layers_state( codex_home: &Path, cwd: Option,