mirror of
https://github.com/openai/codex.git
synced 2026-10-15 16:48:52 +00:00
## Summary Backport #40994 to the 0.150 stable release line. Enable `compaction_image_budget` by default so retained images count against the existing remote-compaction token budget and older images are trimmed as needed. Explicitly disabling the feature preserves the previous behavior. The runtime change is a clean cherry-pick of `528fd7ace5ec0a1c2a387dcb9c76a09f3fa011ee`. The implementation is already present in 0.150.0; only the feature default/stability and the existing integration test expectations change. CI-only corrections address failures already present in the public release base: recognize the valid `OFlags::WRONLY` identifier in codespell, remove the obsolete code-mode manifest-feature exception, remove an unused test import left by the public export, and stage the code-mode host beside the CLI in SDK tests. The SDK staging change matches the existing internal workflow. These changes do not alter CLI runtime behavior or dependencies. ## Validation - Existing integration coverage exercises default/on/off behavior across repeated compactions and checks retained images in follow-up requests. - `just test -p codex-features`: 39 passed, none skipped. - `just test -p codex-core --test all remote_compact_v2_charges_retained_images_to_token_budget`: all three default/on/off cases passed. - `just test -p codex-core --lib image_budget_tests`: 4 passed. - `python3 .github/scripts/verify_cargo_workspace_manifests.py`, the pinned codespell check for the affected identifier, pinned `just fmt`, and `git diff --check` passed. - CI must pass on the final head before release. ## Release Targets `release/0.150`, based on the source commit for 0.150.0 (`076f17c114b0a82d7235552ccec5ff2d69f3266a`). Intended for the next 0.150 stable patch. --------- Co-authored-by: pakrym-oai <pakrym@openai.com>