Add Codex context-window controls with thread-preserving switching - #116
Merged
Merged
Conversation
Deploying neosh with
|
| Latest commit: |
86276ee
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://02bfb411.neosh.pages.dev |
| Branch Preview URL: | https://feat-codex-context-window.neosh.pages.dev |
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.
Codex conversations had no context-window control. Add a Context selector to the existing public model-options API, with Default and the standard/extended limits advertised by Codex’s model cache. This avoids offering an API-only capacity: the local Codex catalog advertises 272k/872k for Astra and GPT-5.6, while a catalog advertising 1M produces a 1M choice.
Numeric selections configure both the window and a 90% auto-compaction threshold. Changes apply on the next turn by replacing the app-server and resuming the same thread; Default removes both overrides. Persist the Codex resume token and retain it across configuration errors so retries do not discard history. The usage meter remains driven by Codex’s reported usable window.
Validation:
The cache is supplemental because
model/listomits window limits. Missing or malformed metadata does not invent an extended-window option. No Codex configuration files are modified. Release notes document the settings and the fact that pre-upgrade conversations do not yet have persisted Codex thread IDs.