mirror of
https://github.com/openai/codex.git
synced 2026-09-05 15:18:41 +00:00
Fix code mode history test plumbing
This commit is contained in:
@@ -527,7 +527,7 @@ mod tests {
|
||||
.await
|
||||
.expect("timed out waiting for tool response")
|
||||
.expect("tool response task should join")?;
|
||||
let ResponseInputItem::FunctionCallOutput { output, .. } = response else {
|
||||
let ResponseInputItem::FunctionCallOutput { output, .. } = response.response_item else {
|
||||
anyhow::bail!("cancelled tool should return function output");
|
||||
};
|
||||
let FunctionCallOutputBody::Text(text) = output.body else {
|
||||
|
||||
@@ -329,6 +329,7 @@ fn post_tool_use_feedback_output_keeps_code_mode_result_typed() {
|
||||
),
|
||||
}),
|
||||
post_tool_use_payload: None,
|
||||
history_truncation_policy: None,
|
||||
};
|
||||
|
||||
assert_eq!(
|
||||
@@ -356,6 +357,7 @@ fn post_tool_use_feedback_output_keeps_code_mode_result_typed() {
|
||||
),
|
||||
}),
|
||||
post_tool_use_payload: None,
|
||||
history_truncation_policy: None,
|
||||
};
|
||||
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user