opencode
opencode copied to clipboard
Default Codex context length not matching Pro plan
Description
In the code, the context length for GPT 5.2 codex shows 400,000 tokens, which is technically correct for the API, but on the pro plan for ChatGPT, I believe you only get like 250 to 260, something like that. So, if the average user signs up with ChatGPT and uses it, they are likely to hit a context error, which forces compaction. So, it would make sense to maybe detect if it's a ChatGPT versus an API integration, and then automatically configure the defaults, maybe?
Plugins
No response
OpenCode version
1.1.111
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response