Honor turn token budgets in Guardian review rollover (#41221)

## What changed

Resolve the review model's token budget from the parent turn's original
configuration and model-default setting when deciding whether a Guardian
follow-up review needs context rollover. This preserves explicit token-budget
preferences instead of unconditionally applying the review model's defaults.

GitOrigin-RevId: cb3adaea7dad22f4975d84c6ee62dfc2bfbddbb9
This commit is contained in:
felixxia-oai authored and copyberry committed 2026-08-27 23:36:08 +00:00
1 parent e325e3acd9
commit 2d929eb7c3
2 files changed
+7 -1

No files matched your search

@@ -956,6 +956,7 @@ async fn run_review_on_session(
&& crate::session::context_window::context_window_token_status_for_model(
review_session.session.as_ref(),
&params.spawn_config,
params.parent_context.turn(),
&model_info,
)
.await