Skip to content

Update Amazon Bedrock GPT-5.6 context window to 1M tokens #37137

Description

@zhongkechen

What variant of Codex are you using?

Codex CLI with the built-in Amazon Bedrock provider.

What feature would you like to see?

AWS now advertises a 1 million token context window for OpenAI GPT-5.6 Sol, Terra, and Luna on Amazon Bedrock. Codex currently limits every GPT-5 model in its static Bedrock catalog to 272,000 tokens.

Please update both context_window and max_context_window to 1_000_000 for:

  • openai.gpt-5.6-sol
  • openai.gpt-5.6-terra
  • openai.gpt-5.6-luna

GPT-5.4 and GPT-5.5 should retain their existing 272,000-token limits. context_window controls the active default, while max_context_window caps user configuration overrides, so both fields should reflect the Bedrock limit.

Additional information

AWS announcement: https://aws.amazon.com/about-aws/whats-new/2026/08/gpt-sol-terra-luna-long-context-bedrock/

A tested implementation is available here:

Validation completed with just fmt and just test -p codex-model-provider (59 tests passed).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIaws-bedrockIssues related to AWS Bedrock providercontextIssues related to context management (including compaction)enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions