Add spawn_agent model overrides

This commit is contained in:
Ahmed Ibrahim
2026-03-09 18:44:22 -07:00
parent 7ba1fccfc1
commit ede51f58ba
5 changed files with 627 additions and 10 deletions

View File

@@ -302,7 +302,13 @@ async fn plugin_mcp_tools_are_listed() -> Result<()> {
skip_if_no_network!(Ok(()));
let server = start_mock_server().await;
let codex_home = Arc::new(TempDir::new()?);
let rmcp_test_server_bin = stdio_server_bin()?;
let rmcp_test_server_bin = match stdio_server_bin() {
Ok(bin) => bin,
Err(err) => {
eprintln!("test_stdio_server binary not available, skipping test: {err}");
return Ok(());
}
};
write_plugin_mcp_plugin(codex_home.as_ref(), &rmcp_test_server_bin);
let codex = build_plugin_test_codex(&server, codex_home).await?;