Skip to content

Commit d77bc5e

Browse files
author
codex-bot
committed
fix: update tool spec tests and exec delta raw
1 parent 303268c commit d77bc5e

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

‎codex-rs/core/src/tools/spec.rs‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,6 +1275,7 @@ mod tests {
12751275
create_read_mcp_resource_tool(),
12761276
PLAN_TOOL.clone(),
12771277
create_apply_patch_freeform_tool(),
1278+
create_read_file_tool(),
12781279
ToolSpec::WebSearch {},
12791280
create_view_image_tool(),
12801281
] {
@@ -1359,8 +1360,8 @@ mod tests {
13591360
"read_mcp_resource",
13601361
"update_plan",
13611362
"apply_patch",
1362-
"web_search",
13631363
"read_file",
1364+
"web_search",
13641365
"view_image",
13651366
],
13661367
);
@@ -1381,8 +1382,8 @@ mod tests {
13811382
"read_mcp_resource",
13821383
"update_plan",
13831384
"apply_patch",
1384-
"web_search",
13851385
"read_file",
1386+
"web_search",
13861387
"view_image",
13871388
],
13881389
);
@@ -1416,6 +1417,7 @@ mod tests {
14161417
"read_mcp_resource",
14171418
"update_plan",
14181419
"apply_patch",
1420+
"read_file",
14191421
"view_image",
14201422
],
14211423
);

‎codex-rs/exec/tests/event_processor_with_json_output.rs‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,17 @@ fn command_execution_output_delta_updates_item_progress() {
772772
}),
773773
);
774774
let out_delta = ep.collect_thread_events(&delta);
775-
assert_eq!(out_delta, Vec::<ThreadEvent>::new());
775+
assert_eq!(
776+
out_delta,
777+
vec![ThreadEvent::Raw(RawEvent {
778+
raw: json!({
779+
"type": "exec_command_output_delta",
780+
"call_id": "delta-1",
781+
"stream": "stdout",
782+
"chunk": "cGFydGlhbCBvdXRwdXQK",
783+
}),
784+
})]
785+
);
776786

777787
let end = event(
778788
"d3",

0 commit comments

Comments
 (0)