I believe the 1M context window can be configured in Codex (config file edit). The price per token increases when >256k though, but it can be useful when compaction at-that-moment would be detrimental.