DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Restart Confirm — DeepSeek Harness 插件(DSH Plugin)
← Plugins
R

dsh-restart-confirm

Restart Confirm

DeepSeek Harness 侧边栏重启按钮,带二次确认:点击后进入两步确认流程,然后重启 dsh WebUI 进程(WebUI 与后台共用一个进程),并使用相同参数自动重新启动。跨平台(macOS/Linux/Windows),无硬编码路径,可配置。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:seanwhy/dsh-restart-confirm#d959f7911d47b73a3396a39a6fd231ec0b48ce7e
README兼容性版本

说明

DeepSeek Harness 侧边栏重启按钮,带二次确认:点击后需连续完成两次确认,然后重启 dsh WebUI 进程(WebUI 与后台共用一个进程),并使用相同参数自动重新启动。跨平台(macOS/Linux/Windows),无硬编码路径,可配置。

兼容性与来源证明

Restart Confirm 以 dsh-restart-confirm 发布,当前版本为 0.1.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/8/21

版本

0.1.2stable
2026/8/21

相关插件

正在加载相关插件…

最新版
0.1.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/8/21
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

继续浏览 ui-customization 分类下经过校验的插件。

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Experimental Agent Team Web Profile@deepseek-ai/dsh-experimental-agent-team-web-profile用于 Agent Teams Remote 和 UI 插件的实验性 Web 配置层Remote Web Ui@linxin666/dsh-remote-web-ui通过扫码配对访问 dsh Web GUI,共享一个官方界面:设置按钮旁的二维码可将手机和 PC 配对到同一个 Web GUI(手机采用竖屏触控适配层,PC 使用完整桌面界面),通过一次性令牌和 rClient Ui Task Board@linxin666/dsh-client-ui-task-board面向 DSH Web GUI 的主机权威任务面板,支持实际会话执行、主机 cron 调度以及可选的跨平台空闲睡眠保护;以挂载方式提供,无需修改 DSH 源代码。

README

dsh-restart-confirm

Sidebar one-click restart button for the DeepSeek Harness Web UI — with a mandatory two-step confirmation before anything happens.

ButtonA compact restart icon (↻) pinned to the sidebar fold toggle — left of "收起侧边栏" when expanded, above "打开侧边栏" in the 56px rail
SafetyYou must confirm twice before the restart is triggered
ScopeRestarts the dsh web process — the WebUI and the harness backend are the same process, so both come back together
RelaunchAutomatically re-runs the exact command that started DSH (process.execPath + process.argv) — no hardcoded paths, all flags (--host, --port, --trusted-host, profile) preserved
PlatformmacOS · Linux · Windows (detached helper survives the kill)
Pending dotHidden by default; polls the marketplace operation snapshot every 5s and turns green only when another plugin is pending install/update/removal (restart required)

Features

  • Two-step confirmation — clicking the button opens a first dialog ("restart?"), then a final warning dialog. Only the second confirm sends the request. Both dialogs can be cancelled.
  • Adaptive placement and sizing — the button is pinned next to the sidebar fold toggle via DOM placement: left of the collapse toggle when the sidebar is expanded, above the expand toggle in the 56px rail. Its SVG is 16px in the expanded row and 18px in the rail; a MutationObserver keeps it pinned through re-renders and collapse/expand transitions.
  • Auto-relaunch and immediate refresh — after killing the process, the plugin re-launches DSH with the same argv from the same working directory. The client compares the health endpoint's per-process boot identity and reloads immediately when the new process is ready; there is no fixed 15–20 second client wait.
  • Cross-platform, zero hardcoded paths — the relaunch command is reconstructed from the running process itself. Works with any launcher (CLI, PWA, supervisor script).
  • Graceful kill — SIGTERM first, SIGKILL only if the process lingers.
  • Configurable — delay before kill, delay before relaunch, optional custom restart command, optional kill-only mode (external supervisor).
  • Re-entry guard — a second request while a restart is in flight is rejected.
  • Loopback-only — the restart endpoint refuses non-loopback callers.
  • Theme-aware UI — uses DSH's own --dsw-alias-* tokens, so the button and dialogs follow light/dark theme.

Compatibility

Version 0.1.2 is adapted for DSH 0.1.0-rc.6 through 0.1.0-rc.8. The client injects only the runtime and locates the sidebar through public labels, slot/data attributes, and class suffixes; it does not require the sidebar client package to be in this plugin's own injection graph. The host also sends the workspace root in its shell sandbox policy for the newer shell contract.

Install

Option A — GitHub (recommended)

dsh plugin --profile web add github:seanwhy/dsh-restart-confirm

Then restart dsh web once so the bundle layer loads.

Option B — DSH Plugin Marketplace

The repo carries the dsh-plugin topic, so it is indexed by the DSH Plugin Marketplace. Open Settings → Plugins → Plugin Marketplace, search dsh-restart-confirm, and install with one click.

Option C — Manual

  1. Add the dependency to ~/.dsh/profiles/web/package.json:
    {
      "dependencies": {
        "dsh-restart-confirm": "github:seanwhy/dsh-restart-confirm"
      }
    }
    
  2. Add the loader row to ~/.dsh/profiles/web/cordis.patch.yml (or install via the dsh plugin command which does it for you):
    - insert:
        - id: dsh-restart-confirm
          name: dsh-restart-confirm
    
  3. pnpm install in the profile, then restart dsh web.

Configuration

Plugin config (Settings → Plugins → dsh-restart-confirm → config, or the profile manifest):

OptionTypeDefaultMeaning
delaySecondsnumber3Seconds after the response before the process is killed (gives the browser time to show the "restarting" state)
relaunchDelaySecondsnumber2Seconds after the kill before DSH is relaunched
customRestartCommandstring''Custom shell command used to relaunch instead of the auto-reconstructed argv
killOnlybooleanfalseOnly kill the process; never relaunch (use when an external supervisor restarts DSH)

How it works

LayerFileWhat it does
Hostlib/index.jsRegisters GET /dsh-health (including a per-process bootId) + POST /restart-dsh; launches a detached helper that sleeps → SIGTERM → (SIGKILL) → relaunches with the original argv
Clientlib/client.jsVanilla (no React) client that pins the sized icon button by DOM placement; shows a dot only for marketplace pending plugin operations; waits for a changed bootId and reloads as soon as the new server is healthy
Bundlecordis.patch.ymlThe loader row that mounts both halves

The handler replies before the kill happens; the helper script carries the kill/relaunch delays. The client does not guess when the restart is done: it polls the health endpoint and reloads as soon as the boot identity changes.

Why an independent helper process?

If the plugin killed DSH from inside its own process, nothing would be left to relaunch it. The helper is detached (nohup sh … & on Unix, Start-Process -WindowStyle Hidden on Windows), so it survives the harness exit and brings DSH back up.

Security notes

  • POST /restart-dsh only accepts loopback callers (127.0.0.1 / ::1) and only POST.
  • The webServer binds to the loopback address by default in the shipped web profile.
  • The plugin never sends data anywhere; /dsh-health is a local-only liveness probe.

Development

The client bundle is hand-written in the exact wire format (window.__ModuleLoader__.load({ id, factory })) with no build step. It is dependency-free (no React), locating the sidebar fold toggle by stable aria-labels plus public slot/data hooks and CSS-module class suffixes so no hashed class is hard-coded:

node --check lib/index.js
node --check lib/client.js

License

MIT