Skip to content

Preserve additional context across compaction - #1

Draft
c3mb0 wants to merge 1 commit into
mainfrom
fix/preserve-additional-context-compaction
Draft

c3mb0 wants to merge 1 commit into
mainfrom
fix/preserve-additional-context-compaction

Conversation

@c3mb0

@c3mb0 c3mb0 commented Aug 14, 2026 •

Copy link
Copy Markdown
Owner

Local invitation-ready validation branch for openai#38269.

What changed:

  • render retained AdditionalContextStore values without mutating deduplication state
  • include current values in ordinary and token-budget replacement context windows
  • cover automatic compaction through the Responses API loop
  • extend the existing token-budget rollover matrix with active application context

Provenance:

Local validation:

  • just fmt
  • NEXTEST_RETRIES=0 just test -p codex-core --test all suite::additional_context — 7 passed, 1269 skipped
  • NEXTEST_RETRIES=0 just test -p codex-core --test all token_budget_context_uses_new_window_after_compaction — 2 passed, 1274 skipped
  • git diff --check

Development toolchain installed from repository requirements: Rust 1.95.0 with rustfmt/clippy/rust-src, just, cargo-nextest, and dotslash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant