This commit is contained in:
Ahmed Ibrahim
2025-10-23 08:16:49 -07:00
parent 282e696079
commit 54f6a292bb
2 changed files with 3 additions and 2 deletions

View File

@@ -98,7 +98,8 @@ impl ResponsesRequest {
/// If present, returns the `output` string of the `function_call_output`
/// entry matching `call_id` in this request's `input`.
pub fn function_call_output_text(&self, call_id: &str) -> Option<String> {
let item = self.input().iter().find(|item| {
let binding = self.input();
let item = binding.iter().find(|item| {
item.get("type").and_then(Value::as_str) == Some("function_call_output")
&& item.get("call_id").and_then(Value::as_str) == Some(call_id)
})?;

View File

@@ -105,7 +105,7 @@ async fn interrupt_tool_records_history_entries() {
let fixture = test_codex().build(&server).await.unwrap();
let codex = Arc::clone(&fixture.codex);
let wait_timeout = Duration::from_secs(0.1);
let wait_timeout = Duration::from_millis(100);
codex
.submit(Op::UserInput {