codex: fix CI failure on PR #13096

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Charles Cunningham
2026-03-06 14:11:28 -08:00
parent 3c072cf30e
commit b668dae035

View File

@@ -659,7 +659,8 @@ fn extract_mcp_tool_selection_from_rollout_reads_search_tool_output() {
),
];
let selected = Session::extract_mcp_tool_selection_from_rollout(&rollout_items);
let rollout_source = InMemoryRolloutSource::new(rollout_items);
let selected = Session::extract_mcp_tool_selection_from_rollout_source(&rollout_source);
assert_eq!(
selected,
Some(vec![
@@ -690,7 +691,8 @@ fn extract_mcp_tool_selection_from_rollout_latest_valid_payload_wins() {
),
];
let selected = Session::extract_mcp_tool_selection_from_rollout(&rollout_items);
let rollout_source = InMemoryRolloutSource::new(rollout_items);
let selected = Session::extract_mcp_tool_selection_from_rollout_source(&rollout_source);
assert_eq!(
selected,
Some(vec!["mcp__codex_apps__calendar_delete_event".to_string(),])
@@ -726,7 +728,8 @@ fn extract_mcp_tool_selection_from_rollout_ignores_non_search_and_malformed_payl
),
];
let selected = Session::extract_mcp_tool_selection_from_rollout(&rollout_items);
let rollout_source = InMemoryRolloutSource::new(rollout_items);
let selected = Session::extract_mcp_tool_selection_from_rollout_source(&rollout_source);
assert_eq!(
selected,
Some(vec!["mcp__codex_apps__calendar_list_events".to_string(),])
@@ -739,7 +742,8 @@ fn extract_mcp_tool_selection_from_rollout_returns_none_without_valid_search_out
SEARCH_TOOL_BM25_TOOL_NAME,
"search-1",
)];
let selected = Session::extract_mcp_tool_selection_from_rollout(&rollout_items);
let rollout_source = InMemoryRolloutSource::new(rollout_items);
let selected = Session::extract_mcp_tool_selection_from_rollout_source(&rollout_source);
assert_eq!(selected, None);
}