mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
Update tests for history and hook API changes (#34403)
## What changed - Assert truncated audio history through `ContextManager::raw_items()`. - Initialize `additional_context_limit` in the quoted Windows hook command test. GitOrigin-RevId: 43c19804e558b7a11fc17590506ec6ec7f3a9897
This commit is contained in:
@@ -2120,8 +2120,8 @@ fn record_items_omits_audio_that_exceeds_the_output_budget() {
|
||||
history.record_items([&item], TruncationPolicy::Tokens(50));
|
||||
|
||||
assert_eq!(
|
||||
history.items,
|
||||
vec![ResponseItem::FunctionCallOutput {
|
||||
history.raw_items(),
|
||||
&[ResponseItem::FunctionCallOutput {
|
||||
id: None,
|
||||
call_id: "call-audio".to_string(),
|
||||
output: FunctionCallOutputPayload {
|
||||
|
||||
@@ -30,6 +30,7 @@ async fn cmd_shell_runs_quoted_hook_command_path() {
|
||||
command: format!(r#""{}" notify"#, hook_path.display()),
|
||||
timeout_sec: 10,
|
||||
status_message: None,
|
||||
additional_context_limit: Default::default(),
|
||||
source_path,
|
||||
source: HookSource::User,
|
||||
display_order: 0,
|
||||
|
||||
Reference in New Issue
Block a user