Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Fix spawn flag typing and isolate project configuration tests (#47704)

Sean Huang6989c6548b37
diff --git a/codex-rs/core/src/config/config_loader_tests.rs b/codex-rs/core/src/config/config_loader_tests.rs
index 1257a40c0f..d50816a84d 100644
--- a/codex-rs/core/src/config/config_loader_tests.rs
+++ b/codex-rs/core/src/config/config_loader_tests.rs
@@ -3756,7 +3756,7 @@ profile = "ignored"
&codex_home_untrusted,
Some(cwd.clone()),
&[] as &[(String, TomlValue)],
- LoaderOverrides::default(),
+ LoaderOverrides::without_managed_config_for_tests(),
&codex_config::NoopThreadConfigLoader,
)
.await?;
@@ -3798,7 +3798,7 @@ profile = "ignored"
&codex_home_unknown,
Some(cwd),
&[] as &[(String, TomlValue)],
- LoaderOverrides::default(),
+ LoaderOverrides::without_managed_config_for_tests(),
&codex_config::NoopThreadConfigLoader,
)
.await?;
diff --git a/codex-rs/utils/pty/src/posix_child.rs b/codex-rs/utils/pty/src/posix_child.rs
index 73ce7b2995..196f6693e7 100644
--- a/codex-rs/utils/pty/src/posix_child.rs
+++ b/codex-rs/utils/pty/src/posix_child.rs
@@ -203,7 +203,7 @@ impl NativeChild {
))?;
libc::POSIX_SPAWN_SETPGROUP
}
- crate::ProcessMode::NewSession => POSIX_SPAWN_SETSID,
+ crate::ProcessMode::NewSession => POSIX_SPAWN_SETSID as _,
};
let mut defaults = std::mem::zeroed();
cvt_errno(libc::sigemptyset(&mut defaults))?;