Repository navigation
Keep Guardian reviewers on summary-based compaction - #43912
Merged
copyberry[bot] merged 1 commit intoSep 8, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## Why Guardian reviewers can inherit token-budget mode from the parent session or model defaults, causing context rollover instead of summary-based compaction. ## What changed Clear inherited token-budget startup activation, set an explicit default `TokenBudgetConfig`, and disable `Feature::TokenBudget` and `Feature::ContextManagement` for Guardian review sessions. ## Testing Update regression coverage to verify that reviewers compact with a summary even when the parent and model enable token budgets. Cover both transcript modes and browser evidence, checking that review requests omit `token_budget.context_window` and retain the compaction summary. GitOrigin-RevId: e1a84f9c7752a712399cd749c3834b2a7bb4a7e6
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/e1a84f9c7752a712399cd749c3834b2a7bb4a7e6
branch
from
September 8, 2026 21:09
2b8dd96 to
dd112a9
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/e1a84f9c7752a712399cd749c3834b2a7bb4a7e6
branch
September 8, 2026 21:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keep Guardian reviewers on summary-based compaction
Why
Guardian reviewers can inherit token-budget mode from the parent session or model defaults, causing context rollover instead of summary-based compaction.
What changed
Clear inherited token-budget startup activation, set an explicit default
TokenBudgetConfig, and disableFeature::TokenBudgetandFeature::ContextManagementfor Guardian review sessions.Testing
Update regression coverage to verify that reviewers compact with a summary even when the parent and model enable token budgets. Cover both transcript modes and browser evidence, checking that review requests omit
token_budget.context_windowand retain the compaction summary.