DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Quick Restart — DeepSeek Harness 插件(DSH Plugin)
← Plugins
Q

dsh-quick-restart

Quick Restart

DeepSeek Harness Web UI 一键重启:安全重启整个 dsh web 进程(由外部辅助进程监管、根据任务状态优雅停止、自动重新连接)。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:zhuifengqug/dsh-quick-restart#800448103d15fb59c263d9bfaacb9de4f9b915b7
README兼容性版本

说明

DeepSeek Harness Web UI 一键重启:安全重启整个 dsh web 进程(由外部辅助进程监管、根据任务状态优雅停止、自动重新连接)。/ DSH Web 界面一键安全重启:重启整个 dsh web 进程,让新安装、更新或修改配置的插件立即生效。

兼容性与来源证明

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

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

版本

0.3.0stable
2026/9/17
0.2.1stable
2026/8/22
0.2.0stable
2026/8/21

相关插件

正在加载相关插件…

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

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

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

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

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

README

dsh-quick-restart

One-click restart for the DeepSeek Harness Web UI — restarts the whole dsh web process so freshly installed, updated, or reconfigured plugins and settings take effect immediately. The Edge/PWA window stays open and reconnects on its own.

中文说明见 README.zh.md。

Why it needs an external helper

DSH has no official "restart the process" API. The only official way to stop it is the graceful path behind ctx.appExit() (dispose the root fiber tree, close the listening socket, let Node exit normally — never process.exit(), which can trip a libuv assertion on Windows).

Restarting itself is the hard part: when DSH runs under a supervisor (e.g. Start-DSH-GUI.ps1), that supervisor puts the process into a Windows Job Object with JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE. Everything inside that job — including plain spawn({ detached: true }) children — dies with it. So the thing that brings DSH back must live outside the job:

  • the helper is created through WMI Win32_Process.Create (its parent becomes WmiPrvSE.exe, so it escapes the job),
  • the plugin verifies that parent before touching DSH: if the helper cannot be confirmed alive outside the job, the restart is aborted and DSH is left untouched.

What you get

  • Sidebar entry (sidebar.footer.action, next to Settings) plus a full page under Settings → Quick Restart.
  • Explicit state machine: idle → checking → waiting-for-tasks → (confirming-force-restart) → preparing-helper → stopping → starting → waiting-for-ready → succeeded | failed.
  • Task-aware: waits for running agents / background jobs / subagents / workflows instead of killing them; on timeout it asks you before a force restart, and only then cancels work.
  • Nothing dies silently: helper launch failure, port-not-released, or service-not-ready all abort with a readable reason in the panel and in the state file.
  • Multi-instance safe: state, lock and log files are keyed by port-pid; process kills are verified by PID + creation time + port ownership (never "kill every node.exe").
  • Result survives a page reload: a new instance recognises its own birth record (newInstance.pid === self) and reports "this instance was started by Quick Restart".

Install

The plugin installs as a profile bundle (the dsh.bundle.patch entry adds it to the profile's cordis.patch.yml):

// <DSH_HOME>/profiles/web/package.json
"dependencies": { "dsh-quick-restart": "link:D:/path/to/dsh-quick-restart" }
# <DSH_HOME>/profiles/web/cordis.patch.yml
- insert:
    - id: dsh-quick-restart
      name: dsh-quick-restart

Then restart DSH once manually (that is the bootstrapping problem this plugin solves afterwards). A page reload is enough for client-half changes — DSH re-hashes plugin bundles and serves the new revision.

Configuration

FieldDefaultMeaning
enabledtrueShow/enable the entry
gracefulShutdownTimeoutMs30000How long to wait for running tasks (1000–3600000)
startupTimeoutMs60000How long to wait for the service to come back (5000–1800000)
reconnectEnabledtrueRead the real result back after reconnecting
requireConfirmationWhenBusytrueAsk before restarting while tasks run

Values are clamped/validated; unlimited waits are rejected on purpose.

Development

npm run typecheck    # tsc --noEmit
npm run build        # type stripping + copy client bundle & helper into lib/
npm test             # 20 unit tests (state machine, locks, recipes, redaction, birth record)
npm run test:launch  # helper launch regression (fake new instance, no real DSH)
npm run e2e          # full restart against a throwaway instance

src/ is the single source of truth; lib/ is a committed build artifact (DSH loads lib/index.js, and git installs must work without a build step).

Limitations (by design)

  1. DSH has no global drain gate, so new work can still arrive while waiting for tasks.
  2. ctx.workflowEngine has no list() — workflows are only observable through events.
  3. Environment variables whose names look like credentials are not forwarded across the restart (only their names are reported).
  4. Credential-like values must live in $DSH_HOME/.credentials.yaml, not in the environment.
  5. Windows-only (Job Object / WMI / Get-NetTCPConnection semantics).

License

MIT

相关插件

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

Acp App@deepseek-ai/dsh-acp-appdsh ACP 配置文件包:基于 dsh-base 的仅限自动化的 JSON-RPC stdio 和进程生命周期管理Client Ui Task Board@linxin666/dsh-client-ui-task-board面向 DSH Web GUI 的主机权威任务面板,支持实际会话执行、主机 cron 调度以及可选的跨平台空闲睡眠保护;以挂载方式提供,无需修改 DSH 源代码。Web All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / git-graph / pet / remote-web-ui / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。Deepseek Ipptdeepseek-ipptiPolloWork PPT Studio 及其精选幻灯片模板,作为原生 DeepSeek Harness 对话视图。