keyiadiannao/dsh-restart-button
A small self-contained power control for DSH: sidebar power button with an upward restart/shutdown menu and a Windows-shutdown-style overlay. Own restart & shutdown engine (no dependency on other plugins), dynamic-port aware.
A self-contained power and lifecycle controller for DeepSeek Harness: a sidebar power button in the footer action slot, theme-aware and styled to match the adjacent Settings trigger, opening a Restart / Shutdown menu with a Windows-style full-screen transition overlay and an auto-reload after a confirmed restart. The restart engine is built in — it writes a detached .cjs helper that waits for the old process to exit and the port to free, then relaunches DSH with the same execPath/execArgv/argv/cwd, with no PowerShell or taskkill. It also adds /restart and /shutdown commands plus a restart_harness model tool, localizes its UI and host notices to zh/en following the profile's locale.preference, and prunes restart-helper-*.log files older than 7 days.
Install
dsh plugin --profile web add "github:keyiadiannao/dsh-power-button#master"README Install block quoted verbatim; the published plugin package is named dsh-power-button even though the repository is dsh-restart-button, and the README says to restart DSH after installation. Registry check 2026-09-16: dsh-power-button returns 404 on npm and the repository publishes no release tags, so the README's #master GitHub form is used and no version is asserted.
Compatibility
README: requires Node ≥ 22.19. It is configured through the profile's cordis layer (cordis.patch.yml or the settings UI) with enableModelTool (default true) and maxDelayMs (default 5000, effective floor 1000 ms). The README notes the restart_harness model tool shares its name with anweat/dsh-restart and registration is skipped when another plugin already owns the name.
Details
- Repo: keyiadiannao/dsh-restart-button
- Category: Development & Runtime
- Stars: 0
- Version: GitHub install from #master (no npm package and no release tags as of 2026-09-16; repo 5★, MIT, last push 2026-09-11)
- Last push: 2026-09-11
- First seen: 2026-08-15
Recent updates
The README documents the button, the restart engine and the config keys rather than a release-by-release table; the repository published no release tags when checked on 2026-09-16.
FAQ
- How do I install it?
- The README's command is dsh plugin --profile web add "github:keyiadiannao/dsh-power-button#master"; restart DSH and a power button appears in the sidebar footer.
- How does it restart DSH?
- Per the README the engine is built into the plugin: it writes a detached .cjs helper that waits for the old process to exit and the port to free, then relaunches with the same execPath/execArgv/argv/cwd — no PowerShell and no taskkill.
- Can I stop the model from restarting the harness?
- Yes — the README's enableModelTool setting (default true) can be set to false to keep restart on the GUI button and /restart only.