mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Add an override to skip project configuration (#38647)
## What changed - Add `LoaderOverrides::ignore_project_config` to bypass project-root discovery and all project configuration layers. - Keep other configuration sources, including session overrides and cloud configuration, active when the override is set. ## Testing - Add a config loader test that verifies project configuration is not loaded or parsed while session and cloud values remain effective. GitOrigin-RevId: b9aa44de526354fad6b900d6ae8d9b5fb8f700bb
This commit is contained in:
1 parent
cce33123a1
commit
b8aa9e9a01
3 files changed
+67
-1
No files matched your search
@@ -52,6 +52,8 @@ pub struct LoaderOverrides {
|
||||
/// Remote app servers own their authentication policy independently.
|
||||
pub ignore_login_requirements: bool,
|
||||
pub ignore_user_config: bool,
|
||||
/// Skip project-root discovery and all project configuration layers.
|
||||
pub ignore_project_config: bool,
|
||||
pub ignore_user_and_project_exec_policy_rules: bool,
|
||||
//TODO(gt): Add a macos_ prefix to this field and remove the target_os check.
|
||||
#[cfg(target_os = "macos")]
|
||||
@@ -75,6 +77,7 @@ impl LoaderOverrides {
|
||||
ignore_managed_requirements: false,
|
||||
ignore_login_requirements: false,
|
||||
ignore_user_config: false,
|
||||
ignore_project_config: false,
|
||||
ignore_user_and_project_exec_policy_rules: false,
|
||||
#[cfg(target_os = "macos")]
|
||||
managed_preferences_base64: Some(String::new()),
|
||||
|
||||
Reference in new issue
Block a user