Skip to content

Add auto-compaction fallback token-budget settings - #33243

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6463f963ba1dbd633d76601b8344360a8c85cf8b
Jul 15, 2026
Merged

Add auto-compaction fallback token-budget settings#33243
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6463f963ba1dbd633d76601b8344360a8c85cf8b

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 15, 2026

Copy link
Copy Markdown

Add auto-compaction fallback token-budget settings

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.

## 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
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/6463f963ba1dbd633d76601b8344360a8c85cf8b branch from 68db49c to 8aae858 Compare July 15, 2026 04:49
@copyberry
copyberry Bot merged commit 8aae858 into main Jul 15, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/6463f963ba1dbd633d76601b8344360a8c85cf8b branch July 15, 2026 04:51
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 15, 2026
@YCX81
YCX81 temporarily deployed to issue-triage July 15, 2026 05:07 — with GitHub Actions Inactive
@YCX81
YCX81 temporarily deployed to issue-triage July 15, 2026 05:07 — with GitHub Actions Inactive
@YCX81
YCX81 temporarily deployed to issue-triage July 15, 2026 05:07 — with GitHub Actions Inactive
@YCX81
YCX81 temporarily deployed to issue-triage July 15, 2026 05:08 — with GitHub Actions Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants