v0.1.3905 read an Ollama model's num_ctx from the Modelfile; maohy915 meant
the name itself ("Qwen-3.8-27b-128k"), which needs no Modelfile.
catalog.NameWindow reads the last part of an id (or of an Ollama tag,
"qwen:27b-128k", "qwen3-128k:latest") when it is a number and a unit alone:
4 to 2048 k, or 1, 2, 4, 5, 8, 10 m, as 1,000 and 1,000,000 like a "[200k]"
mark. Not read as a window: a size (27b, pythia-14m, smollm-135m), a date
(gpt-4o-2024), a quant (q4_k_m), a lone "128k", 1k, 3m, 1.5m, a size
followed by more words.
It is the last word: ListedWindow reads the list's window, then models.dev's,
then the name; a window the user typed (per model or "*") still wins in
windowIn. For a local Ollama list the name replaces the architecture's
maximum (the fallback) but never a num_ctx the Modelfile sets.
Run (mote-run): go test ./internal/catalog ./internal/provider with
NameWindow's edge table, the user/list/catalog order, and an Ollama list
with a fake /api/show; TestNameWindowIsTheLastWord red with the
ListedWindow line returned as 0. Not tried: a real Ollama server; the name's
window is not sent to Ollama as num_ctx.