DSH Plugins
返回列表
🖥️

Restart-service-button

客户端 更新于 2026.08.20

在终端中运行以下命令:

dsh plugin install DeBug-lzy/Restart-service-button

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

在终端运行 dsh plugin install DeBug-lzy/Restart-service-button 即可安装,插件源码见 https://github.com/DeBug-lzy/Restart-service-button

插件介绍

Restarting the dsh web backend usually means switching back to a terminal, killing the process, and relaunching it—a small friction that pulls you out of your reading or writing flow. Restart-service-button collapses that into a double-click in the top-right corner of the DSH web UI: the first click arms a red confirmation state that auto-cancels after five seconds, the second actually restarts the service, and the button then reads "Refresh page" so you can reload the browser once the backend is back.

Because it is a permanently installed plugin rather than a dynamic session add-on, the button survives restarts out of the box. A settings panel (Settings → Restart Button) lets you nudge the top and right offsets in pixel units; changes apply instantly and persist via localStorage, falling back to the 80/20 defaults only if you clear browser data. The button reuses DSH's design tokens with a transparent background and a light hover, so it blends into the interface without shouting. On the security side, the restart endpoint binds to loopback only, so a DSH web instance exposed on a LAN cannot be restarted remotely.

Built for developers who run dsh web locally and want on-screen control without reaching for a terminal. Windows is the primary and most thoroughly tested platform; a best-effort POSIX path (nohup) covers macOS and Linux with slightly less assurance.

使用场景

  • 在网页端直接重启 dsh web 后端,免去切换终端杀进程再重拉的步骤
  • 频繁调试 web 服务时双击按钮即可快速重启,无需记忆命令行
  • 将按钮拖到不遮挡内容的角落,位置记住后长期可用

适合人员

  • 在本地运行 dsh web 并希望全程在浏览器内完成操作的开发者
  • 偏好减少终端切换、追求效率流的效率优先用户
  • 以 Windows 为主力开发平台、偶尔兼顾 macOS 或 Linux 的开发者