插件目录 / Developer / dsh-restart-backend
dsh-restart-backend
已验证 · 实测可装 woyeshishen
功能简介
为 DeepSeek Harness Web 页面左下角添加“重启后端”按钮,一键重启 dsh 后端进程。
可用 — 实测通过,早期项目
为 DeepSeek Harness Web 页面左下角添加“重启后端”按钮,一键重启 dsh 后端进程。 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-restart-backend
中文 | English
Adds a Restart Backend button to the bottom-left of the DeepSeek Harness (DSH) Web sidebar. Click it to restart the dsh web backend process in one step.
When the button is clicked, the Host side spawns a detached watchdog that waits for the current dsh web process to exit and release its port, then starts a fresh dsh web process with the same startup arguments. The old process exits gracefully through ctx.appExit.
Features
| 🔄 One-click restart | Restart the backend from the Web UI without opening a terminal |
| 🧱 Watchdog restart | Detached process survives the old backend exiting, then relaunches with the same args |
| 🔒 Loopback-safe by default | Only 127.0.0.1 / localhost can trigger a restart unless remote restart is enabled |
| 📦 Install once, keep working | Auto-loads at DSH startup, survives restarts |
Install
One-liner (recommended)
Windows (PowerShell)
irm https://raw.githubusercontent.com/woyeshishen/dsh-restart-backend/main/scripts/install.ps1 | iex
macOS / Linux
bash <(curl -fsSL https://raw.githubusercontent.com/woyeshishen/dsh-restart-backend/main/scripts/install.sh)
dsh plugin command
From npm
dsh plugin --profile web add @woyeshishen/dsh-restart-backend
From GitHub
dsh plugin --profile web add github:woyeshishen/dsh-restart-backend
After install, the plugin auto-mounts into the profile; restart DSH (or hard-refresh the page) to activate.
Usage
Once installed, open the DSH Web page. A circular ↻ Restart Backend button appears at the bottom-left of the sidebar.
Click it when you need to restart the backend. The page may disconnect briefly; after the backend comes back up, refresh the page if needed.
Configuration
The plugin exposes one optional setting:
| Config | Type | Default | Description |
|---|---|---|---|
allowRemoteRestart |
boolean | false |
Allow non-loopback/trusted-host sources to trigger a restart. |
To enable remote restart, add a config block in your cordis.patch.yml:
- insert:
- id: restart-backend
name: '@woyeshishen/dsh-restart-backend'
config:
allowRemoteRestart: true
Requirements
License
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-restart-backend」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:woyeshishen/dsh-restart-backend Headless(CLI)profile:
dsh plugin --profile headless add github:woyeshishen/dsh-restart-backend 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。