From 79be2e201fb61e105178a62c8d8d77fa5ed6ad93 Mon Sep 17 00:00:00 2001 From: jif Date: Thu, 29 Oct 2026 11:56:38 +0000 Subject: [PATCH] Initialize `native_call` in agent host test fixtures (#58057) Set `native_call` to `None` in the `ToolCall` and `ToolInvocation` fixtures used by the agent host invocation and spawn tests. GitOrigin-RevId: 2a6f9ccb95d99297085a2861bb44e5ce7599715c --- codex-rs/core/src/agent/host/invocation_tests.rs | 1 + codex-rs/core/src/agent/host/spawn_tests.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/codex-rs/core/src/agent/host/invocation_tests.rs b/codex-rs/core/src/agent/host/invocation_tests.rs index fbd13e9c18..b5b39f3aac 100644 --- a/codex-rs/core/src/agent/host/invocation_tests.rs +++ b/codex-rs/core/src/agent/host/invocation_tests.rs @@ -85,6 +85,7 @@ async fn dispatch_revokes_access_and_holds_call_id_through_callbacks() -> anyhow arguments: args.into(), }, encrypted_function_args: None, + native_call: None, }, source, token, diff --git a/codex-rs/core/src/agent/host/spawn_tests.rs b/codex-rs/core/src/agent/host/spawn_tests.rs index c0cb8e793b..06656b0df7 100644 --- a/codex-rs/core/src/agent/host/spawn_tests.rs +++ b/codex-rs/core/src/agent/host/spawn_tests.rs @@ -112,6 +112,7 @@ async fn same_manager_creation_retains_step_executor_and_shares_exec_policy() -> payload: ToolPayload::Function { arguments: "{}".into(), }, + native_call: None, environments: Default::default(), }; let reservation = InvocationReservation::default();