eca
eca copied to clipboard
Fix OpenAI OAuth context window detection
OpenAI OAuth uses the ChatGPT Codex backend, whose context windows differ from the direct OpenAI API catalog.
ECA was resolving OAuth model limits like direct API-key auth, so
openai/gpt-5.5 reported the direct API's 1.05M context window
instead of the Codex OAuth 272k limit.
This resolves OAuth limits from Codex /models first, with known
Codex OAuth caps as fallback. API-key OpenAI behavior is unchanged.
- [X] I added a entry in changelog under unreleased section.
- [X] This is not an AI slop.