Unlocking Codex GPT-5.4's Full 1M-Token Context Window
Update (July 2026): as of Codex 0.144.4, this technique no longer works -- the model_context_window override is now ignored, and context ceilings are enforced server-side. See the full update at the end of this post.