dsh-safe-restart

Restart DSH and find out whether it actually came back. Windows has no external way to make Electron quit cleanly (WM_CLOSE just minimises the window), so this plugin does not pretend: it terminates the host, relaunches it with retries, then polls the host port until it really serves again, and reports the outcome to a local result file plus a QQ message when qq-notify credentials (appId/clientSecret/openid) are configured in the desktop profile. Verified end to end on 2026-11-08.

Overview

Restart DSH and find out whether it actually came back. Windows has no external way to make Electron quit cleanly (WM_CLOSE just minimises the window), so this plugin does not pretend: it terminates the host, relaunches it with retries, then polls the host port until it really serves again, and reports the outcome to a local result file plus a QQ message when qq-notify credentials (appId/clientSecret/openid) are configured in the desktop profile. Verified end to end on 2026-11-08.

Installation

Install from GitHub

dsh plugin --profile web add github:Daphne999/dsh-safe-restart

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.