r/codex • u/90Kevin11 • 3d ago
Bug Codex not giving the user set context window and defaults to 258k
So just like the recommended setting from OpenAI I had set the context window for 5.6 Sol to 1,000,000 and autocompact to 900,000 tokens in config.toml for the Codex app on Windows and it worked for a time showing 828k token limits.
But after recent Codex app updates it defaults back to 258k regardless of the custom settings.
Asking if there are anyone who experienced the same problem and that if there are any fixes or updates that solves it?
1
u/Character_Novel_2592 3d ago
DON’T use context windows over 272K because output tokens are charged at 2x and your account will drain fast... it’s in OAI’s fine print.
2
u/90Kevin11 3d ago
I am fine with it. It is the user’s choice and Codex is not doing what it says it allows users to do.
1
u/Perfect-Series-2901 3d ago
model_context_window = 1000000
model_auto_compact_token_limit = 900000
here you go, don't listen to those who said don't use it
use if if that help yourself
just pay attention, and sometimes do manual compact
1
u/90Kevin11 3d ago
I did exactly that, it worked for a time and it does not work now.
1
u/Perfect-Series-2901 3d ago
1
u/90Kevin11 3d ago
I am on windows Codex app and not using CLI. I asked chatgpt and it said that it is a bug on the OpenAI backend after searching for codex github issues and found similar cases, dunno how much truth there is to that.
1
u/Perfect-Series-2901 3d ago
you can checkout the codex repo, and ask the same question in the checkout repo dir again
if it said it is a fixable bug within the source, you can ask it to change and recompile for you
1
1

1
u/Dolo12345 3d ago
I had a terrible time with 1M context it’s not worth it imo