DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-quit-restart

d

dsh-quit-restart

Manifest valid

Adds one row to the sidebar that quits DeepSeek Harness Desktop and relaunches it in a single click. It ends both the Electron main process and the host process it spawned, waits for both PIDs to disa

UI (client)hasBundlePatch

dsh-quit-restart

中文

Adds one row to the DSH sidebar: Quit and restart DSH. Click it, the app closes and comes back on its own.

No tray menu, no hunting for the shortcut again.

Install

In the app: Plugins → Add plugin, then enter dsh-quit-restart (npm) or https://github.com/lalalawang/dsh-quit-restart.

Restart DSH once afterwards. Bundles are only scanned at startup.

Use

The last row of the sidebar, next to Settings. Click it: the button changes to "Quitting…", the page drops, the app starts again.

Nothing to configure.

What it actually does

On Windows it writes a one-off VBScript to %TEMP% and launches it with wscript.exe, detached, so no console window appears. The script does three things:

  1. taskkill on two processes: the Electron main process and the host process this plugin runs inside. Killing only the main process is not enough: the host is its child, it keeps the port, and the new instance cannot start.
  2. Polls every 250 ms to see if both PIDs are gone, for up to 10 s. If they are still there, it kills by image name.
  3. Clears the inherited ELECTRON_RUN_AS_NODE (otherwise the new process starts as node and shows no window), then launches the original exe.

The script deletes itself when done.

Routes

RoutePurpose
GET /api/quit-restart/statusResolved exe path, where it was found, main PID, whether the platform is supported
POST /api/quit-restart/restart{"dryRun": true} resolves only; otherwise restarts

Both accept loopback requests only, and when an Origin header is present it must match the serving host, otherwise 403. Non-Windows returns 501.

If the exe path cannot be resolved

Normally it is derived from the parent process image, so nothing is hardcoded.

If that fails, set DSH_QUIT_RESTART_APP_EXE to the full path.

When something goes wrong

Logs land in %TEMP%\dsh-quit-restart-<pid>-<timestamp>.log, one line per stage.

A "Restart failed" button usually means the kill step was denied. Check the last line of the newest log.

Notes

  • Restarting drops any in-flight generation. Session records are already on disk.
  • The relaunched app is an independent process; closing the terminal you started DSH from does not affect it.

License

MIT

Comments

Loading…

Similar plugins

dsh-restart-anywhere

by JoblessJoe

One restart button for the DeepSeek Harness (dsh) web GUI that works with your setup: systemd, Docker, Kubernetes, pm2, launchd, terminal, Windows. Restarts in place, zero dependencies.

Development & InfrastructureManifest valid

★ 0

MIT

JavaScript

Oct 25, 2026

dsh plugin --profile web add dsh-restart-anywhere

by Mr54233

One-click full-app restart for the DSH desktop client: a sidebar footer button and a settings section with a live config form (master switch, confirm dialog, delay, target executable). Restart is perf

Development & InfrastructureManifest valid

★ 4

JavaScript

Nov 5, 2026

dsh plugin --profile web add dsh-restart-now

by penghao73551

Two round buttons at the foot of the DSH desktop sidebar on Windows: restart the app without a console window ever flashing on screen, and open the DeepSeek top-up page in your browser. The restart pa

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

Oct 30, 2026

dsh plugin --profile web add dsh-desktop-quick-actions

by hongdougao111

右上角一枚电源开关:一键真的重启 / 关掉 DSH 进程,不是刷新页面那种假动作。

UI & ExperienceDevelopment & InfrastructureSessions & MessagesManifest valid

★ 2

MIT

JavaScript

Nov 12, 2026

dsh plugin --profile web add dsh-power-switch

A restart button in the window title strip, right of the sidebar toggle, that stops every process the desktop app owns (Electron shell, Host, renderers and tool subprocesses) and starts the executable

UI & ExperienceTerminal & ClientsManifest valid

★ 0

dsh plugin --profile web add dsh-restart-app

by chenkui-luo

A Restart button for DeepSeek Harness Settings: replaces the dsh web process serving the page, then reconnects the page by itself.

Development & InfrastructureTerminal & ClientsManifest valid

★ 1

MIT

JavaScript

Oct 12, 2026

dsh plugin --profile web add dsh-plugin-restart