AI Agent Hub
Back to plugins
🖥️

dsh-restart-button

Client Updated 2026.08.29

Run the following command in DeepSeek Harness:

dsh plugin install hadesybil-hub/dsh-restart-button

Paste the following prompt into your AI chat to install this plugin:

Install the plugin by running dsh plugin install hadesybil-hub/dsh-restart-button in your terminal; the full source is available at https://github.com/hadesybil-hub/dsh-restart-button .

About this plugin

Restarting the DSH web service has always meant a full stop-and-start cycle: click the shutdown button, wait for the process to die, go back to your desktop, double-click the icon, and wait for the browser to pop up again. In that gap, your chat context is lost. dsh-restart-button collapses the entire flow into a single click: a floating button sits right above the existing power button, opens a confirm dialog, and after you confirm, the server restarts itself and your browser reopens automatically — no desktop round-trip required.

Under the hood the plugin has two sides. The server half registers a loopback-only POST route; on request it writes a small, self-contained Node waiter script to disk, spawns it fully detached, and then exits the current process gracefully. The waiter polls port 3080 until it frees up, then spawns a fresh dsh web instance, which auto-opens the browser. The client half is plain DOM with no React and no build step: it is injected through window.ModuleLoader and simply appends the restart button and confirm dialog.

This is for anyone who uses the DSH web GUI daily and finds themselves restarting the service more than once a session — reloading model configs, freeing a stuck port, or recovering from an unexpected crash. One click replaces the shutdown-wait-relaunch dance and keeps your conversation intact.

Use Cases

  • Restarting DSH web after applying new model configs
  • Quickly recovering when a port is stuck or the server hangs
  • Frequent restarts during daily use without losing chat context

Best For

  • Users who interact with DSH through the web GUI daily
  • Developers who need frequent restarts without losing conversation state
  • Users who prefer one-click workflows over manual multi-step operations