# Model retention by driver (pingdotgg/t3code main 6b7027b1f4)

`shouldRetainMissingProviderModels` (apps/server/src/provider/ProviderRegistry.ts) decides whether a
refresh keeps models the new snapshot no longer lists. "Dropped" means the refreshed list wins.

| Driver | When it reports `ready` | Missing models on a ready refresh, main | With this change |
| --- | --- | --- | --- |
| Claude (`claudeAgent`) | SDK `initialize` succeeded (or the last good result, reused once). The list is T3's catalog for the CLI version plus what `init.models` adds | kept forever | kept, now an explicit exception: with gateway model discovery, `init.models` can omit gateway models the gateway still serves (see claude-init-models.md) |
| fx | signed in, and `fx models --json` answered with an `ids` list (this change makes `ids` required; before, an object without `ids` counted as an empty listing) | kept forever | dropped |
| Muse | Muse SDK catalog read completed with at least one model | kept forever (#34993 adds Muse to the Grok/Cursor rule) | dropped |
| Grok | discovered a model list | dropped (#22849) | dropped, now via the default |
| Cursor | SDK catalog read completed | dropped (#28018) | dropped, now via the default |
| Kiro | `whoami` confirms the account, even when `--list-models` failed and the snapshot fell back to the built-in list | kept (fell through the default) | kept, now an explicit exception |
| Pi | own rule (#18498) | unchanged | unchanged |
| ACP Registry (also the dev Replay provider) | own rule: `nativeSessions` present | unchanged | unchanged |
| Codex | own rule | unchanged | unchanged |
| OpenCode | own rule | unchanged | unchanged |
| Antigravity | own rule | unchanged | unchanged |

Six drivers reach the generic branch. Four (fx, Muse, Grok, Cursor) report ready only after a
completed listing and now share the default. Kiro reports ready on a fallback list, and Claude's
ready list can miss gateway models, so both keep the old behaviour explicitly.

Sources: packages/provider-fx/src/server/status.ts (checkFxProviderStatus, FxModels),
packages/provider-muse/src/server/status.ts, packages/provider-kiro/src/server/status.ts,
apps/server/src/provider/ClaudeProvider.ts (checkClaudeProviderStatus),
apps/server/src/provider/Drivers/ClaudeDriver.ts (lastGoodCapabilities).
