auto-attach convo listener

This commit is contained in:
Owen Lin
2025-11-02 16:11:12 -08:00
parent 698c6bd1de
commit fa03208ade
3 changed files with 465 additions and 34 deletions

View File

@@ -60,7 +60,16 @@ pub struct McpProcess {
impl McpProcess {
pub async fn new(codex_home: &Path) -> anyhow::Result<Self> {
Self::new_with_env(codex_home, &[]).await
// Ensure tests run with the default Codex originator (codex_cli_rs)
// regardless of any environment overrides that may be present.
Self::new_with_env(
codex_home,
&[(
codex_core::default_client::CODEX_INTERNAL_ORIGINATOR_OVERRIDE_ENV_VAR,
None,
)],
)
.await
}
/// Creates a new MCP process, allowing tests to override or remove