Change summary
crates/agent_servers/src/codex.rs | 16 ++++++++++++++++
crates/agent_servers/src/e2e_tests.rs | 5 +++--
2 files changed, 19 insertions(+), 2 deletions(-)
Detailed changes
@@ -544,3 +544,19 @@ fn mcp_tool_content_to_acp(chunks: Vec<ToolResponseContent>) -> Option<acp::Tool
None
}
}
+
+#[cfg(test)]
+pub mod tests {
+ use super::*;
+
+ pub fn local_command() -> AgentServerCommand {
+ let cli_path =
+ Path::new(env!("CARGO_MANIFEST_DIR")).join("../../../codex/target/debug/codex");
+
+ AgentServerCommand {
+ path: cli_path,
+ args: vec!["mcp".into()],
+ env: None,
+ }
+ }
+}
@@ -350,8 +350,9 @@ pub async fn init_test(cx: &mut TestAppContext) -> Arc<FakeFs> {
claude: Some(AgentServerSettings {
command: crate::claude::tests::local_command(),
}),
- // todo!
- codex: None,
+ codex: Some(AgentServerSettings {
+ command: crate::codex::tests::local_command(),
+ }),
gemini: Some(AgentServerSettings {
command: crate::gemini::tests::local_command(),
}),