{"version":"2.1.332","anchor":"plugin-hook-error-text-and-plugin-command-options","canonical_anchor":"plugin-hook-error-text-and-plugin-command-options","heading":"Clearer fix for missing plugin folders, and new options for plugin commands","tier":"notice","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/plugin-hook-error-text-and-plugin-command-options","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### Clearer fix for missing plugin folders, and new options for plugin commands\n\nBackground sessions now suggest \/reload-plugins or \/stop when a plugin folder is missing, and plugin commands gain four new options\n\n**What**\n\nWhen a plugin's folder is missing, the error message now depends on the kind of session. In a background session (one that keeps running without a terminal attached) it says \"Run \/reload-plugins, or \/stop and reopen this session\". Before, it always said \"Start a new session or run \/reload-plugins\".\n\nCommands provided by plugins can now set these options:\n\n- `aliases`\n\n- `isHidden`\n\n- `isWorkspaceFree`\n\n- `isTerminalOnly`\n\nA plugin command used to be available in non-interactive mode (running Claude Code with `-p`, without a chat) in every case. Now it is available there unless the command is marked `isTerminalOnly`.\n\n**Why**\n\nThe error now gives advice that works in a background session. Plugin authors get more control over how their commands are named, shown and where they can run.\n\n- Area: Plugins\n- Names: `\/reload-plugins`, `\/stop`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}