Skip to content

[codex] Remove auto-compaction opt-out - #29815

Merged
rhan-oai merged 1 commit into
mainfrom
rhan/auto-compact-limit-cleanup
Jun 24, 2026
Merged

[codex] Remove auto-compaction opt-out#29815
rhan-oai merged 1 commit into
mainfrom
rhan/auto-compact-limit-cleanup

Conversation

@rhan-oai

Copy link
Copy Markdown
Contributor

Summary

  • remove the default-on auto_compaction feature flag and generated config schema entries
  • restore unconditional pre-turn, model-switch/hash, and mid-turn automatic compaction
  • expose new_context whenever token-budget tooling is enabled
  • remove the disabled-auto-compaction integration coverage introduced by [codex] Add internal auto-compaction opt-out #28260

Motivation

Roll back the internal auto-compaction escape hatch added in #28260. Automatic compaction should no longer be suppressible with --disable auto_compaction; existing manual /compact behavior remains unchanged.

Testing

  • just write-config-schema
  • just test -p codex-features — 53 passed
  • just test -p codex-core 'suite::compact::' — 36 passed
  • just test -p codex-core suite::token_budget::new_context_tool_starts_new_window_before_follow_up — 1 passed
  • just fix -p codex-core -p codex-features
  • just fmt
  • just test -p codex-core — 2,778 passed, 59 failed, 16 skipped; failures were outside the changed compaction paths and were dominated by missing first-party test binaries and shell-snapshot timeouts

@rhan-oai
rhan-oai force-pushed the rhan/auto-compact-limit-cleanup branch from d179481 to 177221a Compare June 24, 2026 06:40
@rhan-oai
rhan-oai marked this pull request as ready for review June 24, 2026 07:13
@rhan-oai
rhan-oai requested a review from a team as a code owner June 24, 2026 07:13
@rhan-oai
rhan-oai requested a review from pakrym-oai June 24, 2026 07:14
@rhan-oai
rhan-oai merged commit 2a320fe into main Jun 24, 2026
45 of 47 checks passed
@rhan-oai
rhan-oai deleted the rhan/auto-compact-limit-cleanup branch June 24, 2026 07:15
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 24, 2026
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.

2 participants