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
This commit is contained in:
jif authored and copyberry committed 2026-07-29 12:01:38 +00:00
1 parent ddf33ea802
commit a4d2f31022
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -165,6 +165,7 @@ async fn parallel_support_does_not_match_namespaced_local_tool_names() -> anyhow
payload: ToolPayload::Function { payload: ToolPayload::Function {
arguments: "{}".to_string(), arguments: "{}".to_string(),
}, },
encrypted_function_args: None,
}), }),
None None
); );
+2 -2
View File
@@ -4411,12 +4411,12 @@ async fn background_side_cleanup_removes_local_state_and_ignores_late_events() -
app.handle_app_server_event( app.handle_app_server_event(
&app_server, &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, side_thread_id,
"turn-1", "turn-1",
"item-1", "item-1",
Some("approval-1"), Some("approval-1"),
)), ))),
) )
.await; .await;
let resolution = app let resolution = app