Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Fix MCP cancellation tests to use the metadata callback (#56292)

Adam Perry @ OpenAIef33e43a159b
diff --git a/codex-rs/rmcp-client/src/user_verification_cancellation_tests.rs b/codex-rs/rmcp-client/src/user_verification_cancellation_tests.rs
index 43561368cd..30a21bc930 100644
--- a/codex-rs/rmcp-client/src/user_verification_cancellation_tests.rs
+++ b/codex-rs/rmcp-client/src/user_verification_cancellation_tests.rs
@@ -99,7 +99,7 @@ async fn dropping_tool_call_cancels_remote_request() -> anyhow::Result<()> {
let mut call = Box::pin(client.call_tool(
"wait".into(),
/*arguments*/ None,
- /*meta*/ None,
+ |_| Ok(None),
/*timeout*/ None,
));
// Drop before yielding to the transport's independently scheduled send tasks.
@@ -125,7 +125,7 @@ async fn dropping_tool_call_cancels_remote_request() -> anyhow::Result<()> {
let mut next = Box::pin(client.call_tool(
"next".into(),
/*arguments*/ None,
- /*meta*/ None,
+ |_| Ok(None),
/*timeout*/ None,
));
let request = tokio::select! {