Request exceeds the context window of the model. — Codex
Quick fix
No verified solution was provided in the original post; this issue was closed as a duplicate related to catalog configuration and automatic compression.
Symptom
Section titled “Symptom”Request exceeds the context window of the model.The report states that, during a long conversation, Codex used deepseek-v4-flash from OpenCode Go 2 through the local CC Switch proxy. The upstream returned HTTP 400, then repeatedly retried the same over-limit request and caused the conversation to hang.
The report attributes the problem to a mismatch between the generated catalog's `context_window` and `truncation_policy.limit` and the upstream's actual context window, plus automatic context compression not triggering. The maintainer stated that the core issue was tracked elsewhere and closed this report as a duplicate. The original post did not provide a verified solution.
No verified solution is available in the original post; see the discussion in #5110, and reopen this issue with the differences if an independent provider catalog overstatement or context compression problem can still be confirmed.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 1 real issues
(No FAQ yet)
Related problems
Section titled “Related problems”This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.