{"version":"2.1.324","anchor":"reload-plugins-gains-refuse-if-busy-option","canonical_anchor":"reload-plugins-gains-refuse-if-busy-option","heading":"reload_plugins can refuse to reload while the session is busy","tier":"use","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/reload-plugins-gains-refuse-if-busy-option","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### reload_plugins can refuse to reload while the session is busy\n\nThe reload_plugins control request gains a refuse_if_busy option, advertised as reload_plugins_refuse_if_busy_v1, so busy sessions are left alone\n\n**What**\n\nPrograms that drive Claude Code through its SDK (the toolkit for controlling Claude Code from other software) can ask it to reload plugins with the `reload_plugins` control request. That request now accepts an optional `refuse_if_busy` field.\n\n- When `refuse_if_busy` is true and the session is busy, nothing is reloaded and the caller gets the error code `reload_plugins_busy` with the message \"The session is busy, so plugins were not reloaded. Ask again once it is idle.\"\n\n- Busy means there is a pending prompt, a running turn, queued input or running tasks.\n\n- The default is false, so existing callers behave as before.\n\n- Only `claude -p` reads the field. It announces support by listing `reload_plugins_refuse_if_busy_v1` in `system\/init.capabilities`, the list of features a session reports when it starts.\n\n- The capability is advertised unless the connection is remote or redacts what it saves.\n\nSeparately, when the local message inbox is set up on an explicitly given socket path (a socket is a channel two programs use to talk on the same machine), it now records `hostNamedSocket`.\n\n**Why**\n\nSDK and SSH hosts can now avoid reloading plugins in the middle of a running turn. They can check for `reload_plugins_refuse_if_busy_v1` first, then retry once the session is idle.\n\n- Area: SDK\n- Names: `refuse_if_busy`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}