dsh-restart-confirm
Run the following command in DeepSeek Harness:
dsh plugin install seanwhy/dsh-restart-confirm
Paste the following prompt into your AI chat to install this plugin:
In DeepSeek Harness, run dsh plugin install seanwhy/dsh-restart-confirm to install the plugin; the source repository is https://github.com/seanwhy/dsh-restart-confirm .
About this plugin
In DeepSeek Harness, the Web UI and the harness backend live in the same process. Restarting used to mean closing the terminal, killing the PID, and re-typing the exact launch command with every flag intact. dsh-restart-confirm collapses that into a small icon in the sidebar and two deliberate clicks: the first dialog asks "restart?", the second is a final warning. Cancel either one and nothing happens. Only the second confirm fires.
When confirmed, the plugin follows a graceful-kill-then-relaunch path. It sends SIGTERM first and escalates to SIGKILL only if the process lingers. The relaunch command is not hardcoded; it is reconstructed from the running process itself (execPath plus argv, same working directory), so whatever launcher you used originally—CLI, PWA, supervisor script—reproduces exactly. The client does not wait a fixed 15-20 seconds: it polls the health endpoint for a changed bootId and reloads the moment the new process is ready, making the whole cycle feel nearly instantaneous.
The button itself is carefully pinned via DOM placement next to the sidebar fold toggle, adapts its icon size between the expanded row and the 56-px rail, and a MutationObserver keeps it locked through re-renders. Colors read directly from DSH CSS custom properties, so light and dark themes follow automatically. On the security side, the restart endpoint accepts only loopback POST requests, and the plugin never transmits data externally.
It is built for local DSH Web UI developers—especially those who launch the harness through a PWA, remote desktop, or supervisor script and would rather not memorize the full command line. Once installed, restarting DSH is as effortless as a page refresh, with a built-in safety net on every step so an accidental click never interrupts a live session.
Use Cases
- Quickly restart DSH Web UI during development without manually killing the process and re-typing the launch command with all its flags.
- After a misoperation or a stuck state, recover with a safe one-click restart that does not disturb other live sessions.
- After installing or updating a plugin, trigger the required DSH restart with a single icon click in the sidebar.
Best For
- Local developers who rely on DSH Web UI for day-to-day coding and debugging.
- Users who launch DSH via PWA, remote desktop, or a supervisor script and would rather not memorize the full command line.
- Users who want a two-step confirmation guard so an accidental click never disrupts a live session.
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.