Copilot's /models says capabilities.limits.max_prompt_tokens per account
(936000 for gemini-4-carbon); magpie dropped it and told agents models.dev's
1048576 for the id, so Codex sent prompts Copilot answered 400 to. The
window of a Copilot model is now that limit (models whose list says none keep
models.dev's); other vendors are unchanged, the field being read only in
copilotModels.
The model catalog magpie writes for Codex lacked
effective_context_window_percent, which every entry of Codex's own catalog
has (95); Codex 0.166 worked out no limit from such an entry and never
compacted. Magpie's entries now say 95, and a vendor-listed entry that
omitted it gets it.
Run: TestCopilotWindowIsThePromptItTakes, TestCodexCatalogSaysEffectivePercent
and the codexcat/provider tests via mote-run. Broken by hand: window set to 0,
and the percent left out; each new test goes red.
Not tried: Codex 0.166 itself against the catalog (Codex 0.165 is on this
machine; the live config was not touched).