Skip to content

[codex] Add retired model compaction repro#30319

Draft
celia-oai wants to merge 1 commit into
mainfrom
codex/repro-retired-model-compaction
Draft

[codex] Add retired model compaction repro#30319
celia-oai wants to merge 1 commit into
mainfrom
codex/repro-retired-model-compaction

Conversation

@celia-oai

Copy link
Copy Markdown
Collaborator

Summary

  • add a focused codex-core integration test for model-switch pre-sampling compaction
  • reproduce a thread whose previous model slug was retired after a rename
  • assert that compaction still uses the retired previous slug, surfaces the backend 400, and stops before sampling with the selected replacement model

Why

Sentry issue CODEX-2F3Y showed an existing ChatGPT-authenticated thread continuing to send gpt-5.6-oai from run_pre_sampling_compact after the user selected gpt-5.6-sol-oai. The failure occurs when a compaction hash change causes the migration compaction path to reconstruct the previous model context.

This draft adds a regression reproduction only; it does not change runtime behavior.

Validation

  • just fmt
  • just test -p codex-core pre_sampling_compact_uses_retired_previous_model_after_rename

@celia-oai celia-oai changed the base branch from release/0.142 to main June 27, 2026 01:09
@celia-oai celia-oai force-pushed the codex/repro-retired-model-compaction branch from aff99a5 to ccffcff Compare June 27, 2026 01:14
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