Claude Code v2.1.223 ·
Model switches invalidate the cached prewarm entry
Switching models now throws away prewarm work done for the old model instead of finishing it stale.
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
ModelsArea: what it touches
ImprovementsKind: in v2.1.223,
ImprovementsSection of the release
What
Changing models now discards any precomputed prewarm work tied to the previous model instead of letting it complete against stale state.
Details
- Both the app-state model change handler and the remote model-switch path call the precompute-cache invalidator with the reason
model_switch. - Any in-flight prewarm is aborted with an AbortError named for that reason.
- Same mechanism previously used only for
subagent_exit.
Evidence
l_t(void 0, "model_switch")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.1.223 →