DSH Plugins
返回列表
🖥️

dsh-restart-button

客户端 更新于 2026.09.13

在终端中运行以下命令:

dsh plugin install AllenLogo/dsh-restart-button

将以下提示词粘贴到 DeepSeek Harness 对话框中:

在终端中运行 dsh plugin install AllenLogo/dsh-restart-button 即可安装该插件,开源地址:https://github.com/AllenLogo/dsh-restart-button

插件介绍

Restarting the host process behind the DeepSeek Harness Web GUI used to mean hunting down the terminal window or systemctl unit that originally launched dsh web. dsh-restart-button adds a single Restart-now pill in Settings → General so the operation lives right where you are — no terminal, no systemctl, no guessing which window started the server.

On click, the plugin flushes the current response before the host exits. Under systemd it relies on Restart=always to bring the process back, preventing a detached child from racing the supervisor for the port or escaping its cgroup. In a bare terminal or pnpm dev setup a lightweight detached helper waits for the port to free and relaunches the exact same command line, logging to a temporary file under /tmp. The page then polls a boot identifier and reloads itself once the replacement host answers, within a 60-second budget. Sessions are persisted per event on disk, so a restart does not erase them; if the browser is not on loopback the row degrades to a read-only hint rather than a button that could not possibly work.

Built for developers who use DeepSeek Harness daily through the browser and occasionally need to restart the host without reaching for a terminal — especially when dsh web runs behind a service manager or on a remote box and you interact purely through the page.

使用场景

  • 在设置页一键重启 dsh web,无需切换终端
  • systemd 托管下安全触发重启,避免端口竞争
  • 开发模式(pnpm dev)下快速重新拉起宿主进程

适合人员

  • 通过浏览器日常使用 DeepSeek Harness 的开发者
  • 在 systemd 等进程管理器后运行 dsh web 的运维人员
  • 偏好 GUI 操作、不想频繁打开终端的终端用户