#1297·jcode

grok-4.6 context window is reported as 200k instead of 500k

Author: vietgs03Created Sep 18, 2026Updated Sep 18, 2026

Summary

xAI documents Grok 4.6 / 4.5 as a 500,000-token context window. Jcode has no family entry for those ids, so context_limit_for_model("grok-4.6") falls through to DEFAULT_CONTEXT_LIMIT (200,000). The TUI meter and compaction budget then under-report the real window.

Expected

grok-4.6 and grok-4.5 resolve to 500k. grok-code-fast stays 256k.

Actual

200k default.

Notes

This is a client-side catalog/heuristic issue only. The model still cannot take 1M; 500k is the official cap.