Fix code mode history test plumbing

This commit is contained in:
starr-openai
2026-05-29 01:18:09 -07:00
parent 2b67214208
commit 1658bb5da9
2 changed files with 3 additions and 1 deletions

View File

@@ -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 {

View File

@@ -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!(