mirror of
https://github.com/openai/codex.git
synced 2026-11-16 06:54:36 +00:00
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:
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(),
|
||||
¶ms.spawn_config,
|
||||
params.parent_context.turn(),
|
||||
&model_info,
|
||||
)
|
||||
.await
|
||||
|
||||
Reference in new issue
Block a user