codex - 💡(How to fix) Fix Error running remote compact task: Context Length Exceeded

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

When attempting to run /compact command or writing a prompt, the CLI is always throwing context_length_exceeded error. 5- Cli throws error with code context_length_exceeded

RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

0.133.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.5 medium

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What terminal emulator and version are you using (if applicable)?

PowerShell 7.6.0

Codex doctor report

What issue are you seeing?

When attempting to run /compact command or writing a prompt, the CLI is always throwing context_length_exceeded error.

This started happening only after updating to version v0.133.0 .

<img width="1597" height="894" alt="Image" src="https://github.com/user-attachments/assets/d155b926-3d7f-4ce4-a9a4-6cac7da89211" />

What steps can reproduce the bug?

1- install Codex v0.133.0 2- cd to a project directory, then start the Codex CLI using command codex --yolo 3- run /resume and choose an existing session 4- run /compact or write any prompt 5- Cli throws error with code context_length_exceeded

What is the expected behavior?

No response

Additional information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Error running remote compact task: Context Length Exceeded