{"version":"2.1.337","anchor":"plugin-hook-ops-refusal-and-stream","canonical_anchor":"plugin-hook-ops-refusal-and-stream","heading":"Plugin runtime gains streaming, wider refusals and locked upload lookups","tier":"notice","area":"Plugins","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/plugin-hook-ops-refusal-and-stream","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Plugin runtime gains streaming, wider refusals and locked upload lookups\n\nPlugins get a stream call, refused operations now cover pre-session input, and upload lookups accept a locked option\n\n**What**\n\nPlugins are add-ons that extend Claude Code. The runtime that plugins run on changes in several ways:\n\n- Providers gain a `stream` call.\n\n- Certain operations, such as `prompt.submit`, `config.set` and `mcp.*`, are now refused in more situations. The refusal also covers a key press or input from before the session started that is still running, and the refusal message says so. Before, the refusal applied only to `ui.render`.\n\n- `$.config.set` can pass a write flag.\n\n- The `kept_in` format gains an optional `locked` field.\n\n- The tool that looks up uploads kept in memory accepts that `locked` field. When it is set, the tool first passes the names and the locked value to a helper, then runs the lookup.\n\n**Why**\n\nPlugins are more limited in when they can act, especially on input that came in before the session began. Plugin authors also have a streaming call and a way to mark uploads as locked.\n\n- Area: Plugins\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}