Add auto-compaction fallback token-budget settings - #33243
Merged
copyberry[bot] merged 1 commit intoJul 15, 2026
Merged
Conversation
## What changed - Add `auto_compact_fallback_prompt` and `auto_compact_fallback_buffer_tokens` to `features.token_budget` and the generated configuration schema. - Trim empty fallback prompts, limit prompts to 2,000 bytes, require a buffer when a prompt is configured, and reject non-positive buffer values. - Preserve the new settings when locking resolved session configuration. ## Testing - Cover config resolution and validation for overlong prompts, missing buffers, and non-positive buffers. - Extend the configuration-lock test to cover both settings. GitOrigin-RevId: 6463f963ba1dbd633d76601b8344360a8c85cf8b
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/6463f963ba1dbd633d76601b8344360a8c85cf8b
branch
from
July 15, 2026 04:49
68db49c to
8aae858
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/6463f963ba1dbd633d76601b8344360a8c85cf8b
branch
July 15, 2026 04:51
matthewsorenson
temporarily deployed
to
issue-triage
July 15, 2026 04:59 — with
GitHub Actions
Inactive
matthewsorenson
temporarily deployed
to
issue-triage
July 15, 2026 04:59 — with
GitHub Actions
Inactive
matthewsorenson
temporarily deployed
to
issue-triage
July 15, 2026 04:59 — with
GitHub Actions
Inactive
matthewsorenson
temporarily deployed
to
issue-triage
July 15, 2026 05:01 — with
GitHub Actions
Inactive
wangqj646-hub
temporarily deployed
to
issue-triage
July 15, 2026 05:12 — with
GitHub Actions
Inactive
wangqj646-hub
temporarily deployed
to
issue-triage
July 15, 2026 05:12 — with
GitHub Actions
Inactive
wangqj646-hub
temporarily deployed
to
issue-triage
July 15, 2026 05:12 — with
GitHub Actions
Inactive
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.
Add auto-compaction fallback token-budget settings
What changed
auto_compact_fallback_promptandauto_compact_fallback_buffer_tokenstofeatures.token_budgetand thegenerated configuration schema.
when a prompt is configured, and reject non-positive buffer values.
Testing
buffers, and non-positive buffers.