DSH Sidebar: One-Click Plugin Exit and Restart

Introduction

During development and debugging with DeepSeek Harness Desktop (DSH), it is sometimes necessary to fully restart the application to reset internal state or switch configurations. Manually closing the window and reopening the shortcut is repetitive and tedious. This plugin adds a “Quit and restart DSH” button to the sidebar, so clicking it will automatically close and relaunch the application.

What Is This

dsh-quit-restart is a Windows-oriented DSH plugin maintained by Allen F (lalalawang). It adds a button row to the sidebar, enabling one-click quit and restart of DSH without hunting for a shortcut in the taskbar.

Key Features

  • Adds a “Quit and restart DSH” button to the sidebar
  • Clicking the button closes the application and automatically relaunches it
  • No console window pops up; only a “Quitting…” status is shown
  • Provides API endpoints to query status and perform restart (dryRun mode)

Installation & Enabling

In the DSH application, navigate to the menu: Plugins → Add plugin, then use one of the following:

  • Plugin name: dsh-quit-restart (npm)
  • GitHub repository: https://github.com/lalalawang/dsh-quit-restart

After installation, you need to restart DSH, as plugin packages are only scanned at startup. Once the restart is complete, the button will appear on the last row of the sidebar (right next to Settings).

Typical Usage

  1. Make sure DSH is currently running
  2. Find the “Quit and restart DSH” button in the sidebar
  3. Click the button — the status changes to “Quitting…” and the page fades out
  4. The application automatically relaunches and restores the interface

No configuration is required. The plugin automatically retrieves the executable file path from the parent process.

Use Cases & Notes

Ideal for scenarios where frequent restarts of DSH are needed, such as:
- Resetting internal state or cache
- Reloading after configuration changes
- Verifying behavior after plugin hot updates

Notes:
- The plugin runs with the permissions of the current DSH process. Please review the source code and license before installing.
- A restart will discard any in-progress generation tasks, but session records are already saved on disk.
- The relaunched application is an independent process; closing the terminal window that launched DSH will not affect the application.
- Windows platform only; other platforms will return a 501 error.
- Log files are located at %TEMP%\dsh-quit-restart-<pid>-<timestamp>.log and can be used to troubleshoot failures.

In Short

This plugin solves the tedious manual restart problem with a simple sidebar button, making it ideal for development and debugging scenarios that require frequent restarts. For more details, see the catalog page and the GitHub repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye