Skip to content

chore: fix merge race (auto-compaction feature access)#29393

Merged
sayan-oai merged 1 commit into
mainfrom
codex/fix-auto-compaction-feature-access
Jun 22, 2026
Merged

chore: fix merge race (auto-compaction feature access)#29393
sayan-oai merged 1 commit into
mainfrom
codex/fix-auto-compaction-feature-access

Conversation

@sayan-oai

Copy link
Copy Markdown
Collaborator

Summary

  • read the AutoCompaction feature flag through TurnContext::config
  • fix both the mid-turn and pre-sampling compaction checks

Why

#28260 was validated against an older base where TurnContext exposed a direct features field. It was then merged after that field had moved under config, leaving the merge result unable to compile with E0609 on turn_context.features.

This restores compilation for Bazel, SDK, and argument-comment-lint jobs that build codex-core. Behavior is unchanged: disabling auto_compaction still skips automatic compaction.

Validation

  • just fmt
  • CODEX_HOME=/private/tmp/codex-fix-auto-compaction-test-home just test -p codex-core auto_compaction_feature_disabled — 4 passed
  • just test -p codex-corecodex-core compiled; 2,722 passed and 89 unrelated local-environment failures remained because the sandbox could not write the default Codex SQLite/proxy paths and some first-party test binaries were unavailable

@sayan-oai sayan-oai changed the title [codex] Fix auto-compaction feature access chore: fix merge race (auto-compaction feature access) Jun 22, 2026
@sayan-oai sayan-oai marked this pull request as ready for review June 22, 2026 04:55
@sayan-oai sayan-oai requested a review from a team as a code owner June 22, 2026 04:55
@sayan-oai sayan-oai enabled auto-merge (squash) June 22, 2026 05:09
@sayan-oai sayan-oai merged commit 98845e4 into main Jun 22, 2026
46 of 47 checks passed
@sayan-oai sayan-oai deleted the codex/fix-auto-compaction-feature-access branch June 22, 2026 05:11
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 22, 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