You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: client config export sets maxTokens to the 32000 schema stand-in for every model, truncating max-effort thinking turns (and over-reporting grok-4.20) #5828
Every model in the exported providers.opencodex block gets maxTokens: 32000. The value comes from outputBudgetFor(context) = min(SCHEMA_REQUIRED_OUTPUT_BUDGET, context). The constant's own comment says it is "a ceiling for schema validity, NOT a claim about any specific model's true maximum".
Clients treat maxTokens as the real output ceiling and send it as max_tokens on every request. That causes two failures:
Too low for thinking models. Claude Opus 5.5 at effort: max on a ~220k-token context spent the whole 32,000-token budget on adaptive thinking. The turn ended stop_reason: max_tokens with no text and no tool call (usage.jsonl: status 200, outputTokens 32000, "Output reached the requested token limit"). The client got an empty assistant message after 319 s. The real Opus 5.5 limit is 128K, and ocx's own model-seeds.ts says so.
Too high for some models.xai/grok-4.20-0309-non-reasoning is exported at 32,000, but its limit is 30,000 (ocx generated/model-metadata.ts).
ocx already has authoritative per-model output limits for most exported models. They are in generated/model-metadata.ts (third column) and the Anthropic registry seeds:
Activity
devin-ai-integration commentedon Sep 25, 2026
Triage:
priority: P2— client config export writes the 32000 schema stand-in as every model's maxTokens; client-side workaround.Criteria (P2): Medium: provider/client-specific bug with a workaround, bounded enhancement tied to a tracked issue, perf, or CI reliability.
No open pull request addresses this yet.
feat: add user-managed opencodex model metadata catalog (#2)
lidge-jun commentedon Sep 26, 2026
Fixed on
devby #5891, carried in #5901 (merge dd1e327). It ships with the next release.fix(clients): use authoritative output limit in client config export (l…