{"version":"2.1.336","anchor":"model-override-check-now-also-rejects-a-model-that-fails-a-f","canonical_anchor":"model-override-check-now-also-rejects-a-model-that-fails-a-f","heading":"A plugin hook swapping the model mid-turn is now checked against policy","tier":"notice","area":"Hooks","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/model-override-check-now-also-rejects-a-model-that-fails-a-f","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### A plugin hook swapping the model mid-turn is now checked against policy\n\nModel swaps requested by a `turn.step` hook are checked properly, and the warning now names the model that was asked for\n\n**What**\n\nA plugin hook on `turn.step` can ask Claude Code to use a different model for a request. The check on that request was broken before and did not compare the right values.\n\nClaude Code now accepts the new model only when both models are valid and the new one is allowed by policy. If not, it keeps the original model and logs a warning saying the requested model is not allowed by policy. That warning now names the model that was actually requested.\n\n**Why**\n\nModel swaps made by hooks are filtered properly, and when one is refused the warning tells you which model was turned down.\n\n- Area: Hooks\n- Names: `turn.step`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: no"}