Repository navigation
[codex] Honor disabled compression for reactive compaction - #9200
Merged
diegosouzapw merged 2 commits intoAug 6, 2026
Conversation
joachimBrindeau
marked this pull request as ready for review
August 2, 2026 07:44
diegosouzapw
merged commit Aug 6, 2026
d5aa7e3
into
cheaper-inference:release/v3.8.50
3 checks passed
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
…nference#9200) Validated in local merge-train (devbox-vm-06-dev002) @ combined-tip (FAST gates green: static + changed tests + vitest — only pre-existing audit.test.ts flake). Evidence: /home/diegosouzapw/dev/proxys/OmniRoute/.claude/worktrees/merge-train-20260805-213228-suite.log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
compressionSettingsResult.enabled.Root cause
The dashboard global compression switch disabled the optional prompt-compression engines, but
chatCorestill ran its built-in reactive and last-resortcompressContextpasses. As a result, histories could still be rewritten with compression disabled, including removal of old tool-use/tool-result blocks. That can leave clients such as Pi and Codex with invalid tool-call histories on later turns.Impact
When compression is globally off (or the model/provider is excluded), OmniRoute now forwards the history without proxy-side reactive compaction. When compression is enabled, existing proactive and last-resort behavior is unchanged.
Validation
node --test tests/unit/reactive-context-compaction-policy.test.mjsnpm run typecheck:coregit diff --checkRelated