From a4d2f3102249a94835e96910a3649a830182813e Mon Sep 17 00:00:00 2001 From: jif Date: Wed, 29 Jul 2026 11:56:35 +0000 Subject: [PATCH] Update tests for current tool call and app-server event types (#35942) ## What changed - Set `encrypted_function_args` when constructing the router test's local tool call. - Box the TUI test's app-server request payload to match `AppServerEvent::ServerRequest`. GitOrigin-RevId: 45195f362bc912d202d95ea67271bcb102bf1e2a --- codex-rs/core/src/tools/router_tests.rs | 1 + codex-rs/tui/src/app/tests.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/codex-rs/core/src/tools/router_tests.rs b/codex-rs/core/src/tools/router_tests.rs index 92625f0ea1..0e4dc01cf7 100644 --- a/codex-rs/core/src/tools/router_tests.rs +++ b/codex-rs/core/src/tools/router_tests.rs @@ -165,6 +165,7 @@ async fn parallel_support_does_not_match_namespaced_local_tool_names() -> anyhow payload: ToolPayload::Function { arguments: "{}".to_string(), }, + encrypted_function_args: None, }), None ); diff --git a/codex-rs/tui/src/app/tests.rs b/codex-rs/tui/src/app/tests.rs index 042b08e0c4..fb20b6a4fb 100644 --- a/codex-rs/tui/src/app/tests.rs +++ b/codex-rs/tui/src/app/tests.rs @@ -4411,12 +4411,12 @@ async fn background_side_cleanup_removes_local_state_and_ignores_late_events() - app.handle_app_server_event( &app_server, - codex_app_server_client::AppServerEvent::ServerRequest(exec_approval_request( + codex_app_server_client::AppServerEvent::ServerRequest(Box::new(exec_approval_request( side_thread_id, "turn-1", "item-1", Some("approval-1"), - )), + ))), ) .await; let resolution = app