Terminal-only commands like /doctor and /exit are flagged so non-terminal hosts can hide them.
What's wrong with this entry?
Commands 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.
- Command definitions gained a
terminalOrientedfield; only user-invocable commands appear in the array.
terminal_slash_commands
Strings lifted out of the shipped bundle, so the claim above can be checked against them.