Desktop in its third-party mode asks for a session's title and branch name in one tool-less request whose model is its "small_fast" pick from the gateway's /v1/models: the first id with haiku in it, else sonnet, else opus (_$n in its app.asar, 2.7032), and the session's model only when no id has one. So with any Claude model in magpie's catalog, {"model":"claude-sonnet-5-thinking","max_tokens":200,"system":"You write short session titles. …"} went to that Claude model, whatever the user picked; Claude Code in the Code tab likewise asks for its own claude-haiku-… by name for small tasks, which magpie didn't serve for Desktop. Desktop has no config key for its small model (inferenceModels' anthropicFamilyTier / anthropic_family_tier only tags a listed model as a tier, and magpie doesn't know the user's pick), so the gateway does it: a request on the magpie-claude-desktop key (or Desktop's User-Agent) that carries tools is a session turn and its model is remembered (and kept in claude-desktop.model beside settings.json, for a title asked before the first turn after a restart); a small tool-less request (max_tokens at most 4096: a title asks 200, a turn tens of thousands) for a model whose id reads as Claude's, or any request for a model magpie doesn't serve, goes to that model instead. Requests from other agents, tool-less ones on non-Claude models, a tool-less chat turn on a Claude model the user picked, and a session that is itself on the Claude model are sent as asked. standIn's "magpie serves no such model" check is now unserved(), shared by both.
Tested: a gateway test against a fake Anthropic provider on the claude-desktop key (title before any turn as asked; after a turn on an aliased model the sonnet title and an unserved claude-haiku-4-5-20251001, with and without tools, go to it; a non-Claude tool-less request, Claude Code's key and a sonnet session untouched; the pick read back from disk after a reset), hasTools cases; go test -tags nogui ./... passes, CGO_ENABLED=0 go build -tags nogui for darwin, linux and windows.