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 authored and copyberry committed 2026-07-20 20:06:58 +00:00
1 parent e52c35b000
commit ec3140db12
2 files changed
+3 -2

No files matched your search

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