During the development and debugging of DeepSeek Harness (DSH), it is sometimes necessary to restart the process to apply configuration changes or handle abnormal states. Traditional restart methods require manually closing the window, which is time-consuming and also interrupts the current conversation context. The @huangzhaoyu/zhaoyu-restart plugin provides a seamless restart solution.
What Is the Plugin¶
This is a client plugin designed for DeepSeek Harness (DSH), maintained by SUJIElearning. It adds a restart button to the input box, enables silent process restart, and ensures that old tabs can automatically disconnect and reconnect.
Core Features¶
- Add a restart button
- Silent restart
- Automatic reconnection for old tabs
- Register a POST route on the Host side
- Register an input box slot on the Client side
Installation and Enablement¶
Use the official installation command to add the plugin to the DSH Web configuration file:
dsh plugin --profile web add @huangzhaoyu/zhaoyu-restart
Typical Usage¶
After installation, a 🔄 Restart button will appear in the lower-left corner of the chat input box. When you click the button, the following workflow is triggered:
- The button status changes to “Restarting…”.
- The Host side uses
powershell.exe -WindowStyle Hiddento silently start the restart script. - The DSH process is restarted, and the browser automatically disconnects and reconnects.
- No window is popped up throughout the process, achieving a seamless restart.
Applicable Scenarios and Notes¶
- Applicable scenarios: Suitable for cases where the DSH process needs to be restarted frequently but you do not want to interrupt the development flow.
- Permissions and security: The plugin runs with the permissions of the current DSH process. Please ensure that the script in the default restart script path has execution permissions.
- Configuration: The default restart script path is
restart-dsh.batin the DSH deployment directory. You can modify thescriptPathconfiguration item via DSH settings. - License: Open source under the MIT License.
Conclusion¶
This plugin implements process management through simple interface interactions and is suitable for scenarios that prioritize development efficiency. The project is available on GitHub: SUJIElearning/zhaoyu-restart.