From bd5185820df893016f51e34a7e7e19ebc8e7240b Mon Sep 17 00:00:00 2001 From: Ruslan Nigmatullin Date: Wed, 30 Sep 2026 00:04:34 +0000 Subject: [PATCH] Compare tool call metadata in the recorder refresh test (#49408) ## What changed Update the replay assertion in the recorder refresh test to compare `executed_tool_call_metadata()` instead of entire response items. This keeps the assertion focused on preserving recorded tool call metadata across a configuration refresh. GitOrigin-RevId: 763173a918f4e0bc79c3c04466453cafb9629775 --- .../src/tools/executed_tool_calls/request_metadata_tests.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/codex-rs/core/src/tools/executed_tool_calls/request_metadata_tests.rs b/codex-rs/core/src/tools/executed_tool_calls/request_metadata_tests.rs index 9b75f4d4ac..b4ffbc8276 100644 --- a/codex-rs/core/src/tools/executed_tool_calls/request_metadata_tests.rs +++ b/codex-rs/core/src/tools/executed_tool_calls/request_metadata_tests.rs @@ -537,7 +537,10 @@ async fn recorder_refreshes_without_changing_execution_features_or_claiming_miss // Replay the same history item across the configuration refresh. replay.set_id(direct_output.id().cloned()); calls.attach_direct_call_to_output(&mut replay, prepared); - assert_eq!(replay, direct_output); + assert_eq!( + replay.executed_tool_call_metadata(), + direct_output.executed_tool_call_metadata() + ); } let cell = CellId::new(format!("cell-{index}"));