{"version":"2.1.333","anchor":"plugin-stateset-validation-hardened","canonical_anchor":"plugin-stateset-validation-hardened","heading":"Plugins writing shared state face an extra check","tier":"notice","area":"Plugins","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/plugin-stateset-validation-hardened","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Plugins writing shared state face an extra check\n\nWhen a plugin writes state through `state.set`, Claude Code now runs an extra check that can refuse the write with a reason\n\n**What**\n\nPlugins can save values through `state.set`. Before, a plugin that owned a value could always write it. Claude Code now runs an extra check first, and that check can refuse the write with a message beginning \"denied:\".\n\nThe argument check for `ui.open` was also replaced with a shared, general-purpose one.\n\n**Why**\n\nPlugin authors may see new refusal messages when writing state.\n\n- Area: Plugins\n- Names: `state.set`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}