{"version":"2.1.229","anchor":"slash-commands-can-mark-themselves-terminal-only-and-sdk-cli","canonical_anchor":"slash-commands-can-mark-themselves-terminal-only-and-sdk-cli","heading":"Slash commands can mark themselves terminal-only, and SDK clients get the list","tier":"internal","area":"Slash Commands","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.229\/e\/slash-commands-can-mark-themselves-terminal-only-and-sdk-cli","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.229","markdown":"### Slash commands can mark themselves terminal-only, and SDK clients get the list\n\nTerminal-only commands like \/doctor and \/exit are flagged so non-terminal hosts can hide them.\n\n**What**\n\nCommands that only make sense in the CLI, such as `\/doctor`, `\/exit`, `\/statusline` and `\/reload-plugins`, are now flagged as terminal-oriented. The startup `system`\/`init` message sent to SDK clients carries a new `terminal_slash_commands` array naming those commands, so a non-terminal host can hide or reject them instead of offering commands it cannot run. The array is left out entirely when nothing is flagged.\n\n**Details**\n\n- Command definitions gained a `terminalOriented` field; only user-invocable commands appear in the array.\n\n**Evidence**\n\n`terminal_slash_commands`\n\n- Area: Slash Commands\n- Names: `\/doctor`, `\/exit`, `\/statusline`, `\/reload-plugins`, `terminal_slash_commands`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5"}