Skip to content

openai-codex/gpt-5.3-codex-spark has incorrect context window limit #4969

@richtan

Description

@richtan

What happened?

#4603 updated the openai-codex model list, but incorrectly set the context window limit for openai-codex/gpt-5.3-codex-spark to 272000 via the CODEX_CONTEXT constant.

contextWindow: CODEX_CONTEXT,

This causes pi to trigger auto-compaction at only around 47% of the displayed context window limit when using this model.

Image

Steps to reproduce

  1. Select openai-codex/gpt-5.3-codex-spark as the model
  2. See that Pi shows the context window limit as 272k
  3. Fill up more than 128k tokens of the context window

Expected behavior

The context window for openai-codex/gpt-5.3-codex-spark should be 128000, not 272000 (CODEX_CONTEXT). Should just be a change on this line:

contextWindow: CODEX_CONTEXT,

Version

0.75.5

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginprogressIssue is being worked on

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions