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:
Charlie Marsh
2026-07-20 20:02:25 +00:00
committed by copyberry
parent e52c35b000
commit ec3140db12
2 changed files with 3 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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,