dsh-command-quit: Add slash exit command and terminal exit command to DSH client
This article introduces the third-party plugin `dsh-command-quit` (version 1.4.0, maintainer Noobboi-22401, MIT license, unofficial DeepSeek plugin). It provides two exit channels for the DSH desktop client: the slash command `/quit-dsh` in the chat interface (executes upon completion or can be selected from the command palette) and the `quit-dsh` command in any terminal (defaults to asking for confirmation, exiting only if 'y' is entered). Both commands utilize the same native exit process; a confirmation dialog appears if tasks are running, processes are not forcefully killed, and tokens are not consumed. Both command names are customizable. Before saving, the system checks the format and for name collisions (iterating through all known scopes to avoid being overshadowed by built-in commands with the same name). Upon a collision, it automatically reverts to the default name and alerts via red text on the configuration page and a bottom banner. Installation is done via `install_bundle github:Noobboi-22401/dsh-command-quit`. Starting from version 1.4.0, an exit patch of equal length must be applied to the client's `app.asar` (using `node tools\patch-asar.mjs`, which supports `--check` and `--revert` flags); otherwise, an "invalid IPC" error will be reported and a crash window will appear. The statement from version 1.3.0 that "no patch is required" is now invalid. The terminal command requires double-clicking `install-dsh-quit.cmd`, and the patch must be reapplied after client upgrades. The terminal command requests the plugin to exit via a local named pipe / loopback interface combined with a 64-bit random password located in the user directory. Uninstallation only deletes the marked files and uses `uninstall-dsh-quit.cmd` to undo the patch.
Read More