From 133b766e4be614e1e8413f527c7231d34e4a5f38 Mon Sep 17 00:00:00 2001 From: Felipe Coury Date: Fri, 3 Apr 2026 11:40:38 -0300 Subject: [PATCH] fix(core): annotate metadata literals in mcp tool tests Add the required `/*metadata*/` comments to the positional `None` arguments in the custom MCP approval regression tests. This fixes the argument-comment lint failures on the PR branch without changing test behavior. --- codex-rs/core/src/mcp_tool_call_tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/codex-rs/core/src/mcp_tool_call_tests.rs b/codex-rs/core/src/mcp_tool_call_tests.rs index 9b2bbb8ca7..05f6f8e8e2 100644 --- a/codex-rs/core/src/mcp_tool_call_tests.rs +++ b/codex-rs/core/src/mcp_tool_call_tests.rs @@ -2097,7 +2097,7 @@ async fn custom_auto_mode_skips_approval_when_annotations_are_missing_in_never_m &turn_context, "call-custom-auto", &invocation, - None, + /*metadata*/ None, AppToolApproval::Auto, ) .await; @@ -2126,7 +2126,7 @@ async fn custom_auto_mode_skips_approval_when_annotations_are_missing_in_on_requ &turn_context, "call-custom-auto-on-request", &invocation, - None, + /*metadata*/ None, AppToolApproval::Auto, ) .await @@ -2188,7 +2188,7 @@ async fn custom_approve_mode_without_metadata_still_uses_arc_monitor() { &turn_context, "call-custom-approve-no-metadata", &invocation, - None, + /*metadata*/ None, AppToolApproval::Approve, ) .await;