mirror of
https://github.com/openai/codex.git
synced 2026-11-14 06:48:26 +00:00
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:
1 parent
ddf33ea802
commit
a4d2f31022
2 files changed
+3
-2
No files matched your search
@@ -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
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user