Introduction¶
After the DSH service starts, closing the browser does not terminate the DSH background service process; the service still occupies ports and memory. dsh-shutdown is the shutdown plugin for DeepSeek Harness: it adds a “Shutdown” page in Settings, allowing you to confirm first, respond to the page, and finally exit the current DSH service.
Positioning and Maintenance¶
This plugin is maintained by knlght under the MIT license.
It adds a tab at the bottom of the Settings sidebar to perform the shutdown action within the page: first double confirmation, then request the shutdown endpoint, and finally gracefully exit the process.
Core Features¶
Below are the page capabilities provided:
- Adds a “Shutdown” tab at the very bottom of the Settings sidebar.
- Clicking “Shutdown DSH Service” presents “Confirm Shutdown / Cancel” buttons to prevent accidental triggers.
- Upon confirmation, the page immediately displays a green “Shutdown Successful” panel and attempts to automatically close the tab.
- Buttons and color schemes reference DSH theme tokens (
--dsw-alias-*) to ensure consistency in light and dark modes:
--dsw-alias-*
Installation and Enablement¶
First, execute the installation command. Placeholders in the command need to be replaced with the actual repository or npm package name:
dsh plugin --profile web add <本仓库 / npm 包名>
After installation, restart dsh web to activate the plugin:
dsh web
Typical Usage¶
-
Open DSH Settings and scroll to the “Shutdown” tab at the bottom of the sidebar.
-
Click “Shutdown DSH Service”; the page displays “Confirm Shutdown / Cancel” buttons.
-
After selecting “Confirm Shutdown”, the page displays a green “Shutdown Successful” panel and attempts to automatically close the tab.
-
If there is an ongoing conversation, please wait for it to complete before shutting down.
Behavior and Notes¶
Shutdown requests target the following endpoint, accepting only POST:
/_dsh/shutdown
The service first returns a “Shutting down” response to the page, and executes the following call to exit after 500ms:
process.exit(0)
Session logs are flushed to disk on a per-event basis; exiting safely when idle. If processing a conversation, it is recommended to wait for completion before triggering shutdown.
Under browser security policies, scripts can only close windows they opened. Tabs opened manually will retain the “Shutdown Successful” panel.
The plugin runs with the current dsh process permissions and will trigger process exit. It is recommended to check the source code and MIT license before deciding to enable it.
Links¶
- Plugin Directory: https://www.skillhub.cn/plugins/knlght/DSH-shutdown
- GitHub Repository: https://github.com/knlght/DSH-shutdown