hhdaxia on X (magpie 0.1.3504, Linux): the Claude subscription's Models
editor, "vendor list · just now" after Fetch models again, lists Fable
5.1 and the 5.5s but not Fable 5.2, which Claude Code's own /model has.
Cause: a Claude account's list is models.dev's anthropic list plus what
Claude Code's .claude.json says beyond it (magpie asks Anthropic
nothing). Its fetch rebuilt that list from the local models.dev cache,
which is fetched again only once it is a day old. models.dev added
claude-fable-5-2 after the user's last daily sync, so every fetch that
day answered without it. Claude Code builds /model from the catalog
baked into its binary (2.1.321 and the latest 2.1.322 both have
latest_per_family fable: claude-fable-5-2), not from its bootstrap's
additionalModelOptionsCache (here still only claude-fable-5-1[1m]),
so nothing in .claude.json would have given it either. Not
Linux-specific.
Fix: catalog.Asked, called by the Claude account's fetch, syncs
models.dev first when the cache is older than 10 minutes and wasn't
tried in that time, bounded by the fetch's context; a failure is logged
and the local catalog answers. Only in a process that keeps the catalog
fresh (the app, magpie serve), so CLI commands and tests never reach
the network. Subsystem page updated.
Run on mote at 59d9f5c7d plus this change: gofmt -l clean; go vet ./... (darwin),
GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet ./... ok;
go test -count=1 ./internal/catalog ./internal/provider ok (0.8s, 156s).
TestClaudeFetchAsksModelsDevForANewModel: a two-hour-old catalog
without Fable 5.2, a fake models.dev with it; the fetch lists it first,
a second fetch asks nothing more, and outside KeepFresh nothing is
asked.
Rebased onto 5e6fb2770 (54 files in internal/catalog and
internal/provider changed) and run again at this tree on mote:
go test -count=1 -run 'Claude|Fable|KeepFresh|Sync' ./internal/catalog
./internal/provider ok (0.6s, 30s).
Broken by hand: with the catalog.Asked call taken out of the fetch the
test is red ("Fable 5.2 not first after a fetch: [claude-haiku-5-5
claude-opus-5-5] (0 asks of models.dev)").
Real: a throwaway program on mote with a sandbox cache holding only
Fable 5.1, three hours old, called catalog.Asked against the real
https://models.dev/api.json: after it, claude-fable-5-2 is listed
(1.9s).
Not tried: the GUI click with a real Claude account; the full suite
runs after the push and a red gets an issue.