Files
magpie/internal/catalog
yetone f51863b3da catalog: a relay channel's word before a known model is that model, so Codex lets it see images (#2157)
The reporter's relay lists nyro-gpt-5.5, nyro-gemini-3.8-flash and
nyro-deepseek-v4.1-flash. None of those ids is in models.dev, so magpie
knew nothing about them: magpie-models.json gave each one
input_modalities ["text"], no context window and no reasoning levels, and
Codex refused every image. The bare ids are known (gpt-5.5: images, a context
window and reasoning levels).

renamed now also takes a leading channel word off an unknown id: 2 to 24
lowercase letters and a dash, when what is left has a digit and is a
known model. models.dev's own data backs it: 147 of its listed ids have
the form word-<another listed id> (openai-, databricks-, anthropic-,
doubao-, zai-, ...), and each is the same model. A listed id is never
renamed, so a vendor's own chan-gpt-5.5 keeps its entry; nyro-auto,
ny2-gpt-5.5 and nyro-gpt-5.5x stay unknown. NameOf keeps the word, so the
shown name is still the relay's own.

TestRenameNeverTakesAModelForAnother (#1383) had
anthropic-deepseek-v4.1-flash as a near miss. By the evidence above, that
id is DeepSeek's model under a vendor word, so the guard row is now
anthropic2-deepseek-v4.1-flash, which the rule still leaves alone.

A model magpie still can't place stays text-only: telling Codex a
text-only model sees images makes it offer view_image and fails the turn
upstream. For those the per-model "sees images" switch already writes
image into the catalog, which TestChannelModelsReachCodexWithImages
covers along with the renamed ids.

Run: go test -tags nogui for internal/catalog, codexcat, provider,
gateway (40m timeout; load ~380 from other sessions) and agent; gofmt -l;
go vet darwin, GOOS=linux -tags nogui, GOOS=windows. With the channel rule
turned off by hand both new tests go red (nyro-gpt-5.5 images false,
window 0; input_modalities [text]).
Not tried: a real Codex image turn through the reporter's relay.
2026-10-14 19:06:50 +08:00
..