893413974-bit/dsh-setting-restart
在“设置” → “通用”中一键重启 DSH 服务。这是 DeepSeek Harness 的 dsh-plugin,重启行固定在通用设置页面底部。
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH), designed to add a one-click restart entry for the DSH service directly in the DSH UI. The entry is pinned permanently to the very bottom of the Settings → General page, so it will always stay there no matter how many other setting entries are added later. When you click the restart button, the plugin triggers a full process restart of the DSH service, and automatically reconnects your browser tab once the new service instance is up and running. It follows DSH's UI conventions and supports both Simplified Chinese and English UI text.
The plugin is targeted at DSH users who customize their DSH installation, modify configurations, or frequently add new plugins to their DSH web profile. Instead of switching back to your terminal to stop and restart the DSH process manually after making configuration changes, you can complete the entire restart workflow directly from the DSH settings UI. You can also customize optional configuration parameters like exit delay, maximum wait time for old process exit, and whether to allow automatic respawning, to fit setups that use process supervisors like systemd or pm2. This streamlines the development workflow for DSH power users who modify their setups often.
To use this plugin, you need to be running DSH version 0.1.0-rc.6 or newer with the web profile, and have Node.js 20 or higher installed on your system. You install it via the official DSH CLI command dsh plugin --profile web add dsh-setting-restart, then add a loader entry to your cordis.patch.yml configuration file before restarting DSH to activate it. If you want to enable it across all your DSH profiles, you can add the loader entry to the root level cordis.patch.yml instead. The plugin is published open source under the permissive MIT license, free to use without restrictions.
这是一个专为 DeepSeek Harness (DSH) 开发的原生插件,它在 DSH 的「设置 → 通用」页面最底部固定添加了一个一键重启 DSH 服务的入口。无论后续通用设置页新增多少选项,这个重启入口始终保持在页面最底端。用户点击重启后,插件会触发完整的服务重启,重启完成后浏览器页面会自动重连,并用绿色标识显示当前的连接成功状态,它遵循 DSH 客户端界面规范,同时支持中英双语界面。
该插件面向自定义配置 DSH 服务的开发者,当开发者修改了 DSH 的配置、新增了插件或调整了服务端参数后,不需要手动退出原有进程再重新启动,只需要打开设置页点击一下重启按钮就能完成操作,省去了切换到终端执行命令的繁琐步骤。用户还可以根据自身需求配置退出延迟、等待退出超时等参数,适配 systemd、pm2 等 supervisor 管理进程的场景。
使用该插件要求 DSH 版本不低于 0.1.0-rc.6 的 web 配置文件,同时需要环境中的 Node.js 版本不低于 20。你可以通过 DSH 官方的插件管理命令直接安装,之后在对应配置文件 cordis.patch.yml 中添加加载项就能启用。该插件采用 MIT 许可证开源,完全免费使用,没有任何额外的功能限制或使用收费。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-setting-restart(893413974-bit/dsh-setting-restart)
仓库:https://github.com/893413974-bit/dsh-setting-restart
本站详情页:https://www.yhbd.top/plugins/893413974-bit-dsh-setting-restart/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 20 · 最近提交 2026-08-18 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 20 stars - an early-stage project星标 20,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-setting-restart
把 893413974-bit/dsh-setting-restart 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-setting-restart
One-click restart of the DSH service, from Settings → General. The "一键重启" row is pinned at the very bottom of the General settings page — no matter how many rows are added above it later, it always stays the last one. After the restart the page reconnects automatically and the row confirms it with a green "Connected" state, so you always know the service is back.
Features
- A one-click restart row at the bottom of Settings → General (below "繁忙时 Enter 键行为" / whatever comes last).
- The row is pinned with the maximum slot
order, so it always renders at the bottom of the page. - Restart is a real process restart: the host spawns a detached helper, exits, and the helper re-spawns the exact same
dshcommand (same executable, arguments, cwd and environment). The browser tab reconnects automatically once the new instance binds the same port. - Bilingual UI copy (简体中文 / English), following the DSH client conventions.
- Fully typed host invocation through the DSH Typert RPC registry (
settingRestart/restart).
Requirements
- DeepSeek Harness
dsh≥ 0.1.0-rc.6 (thewebprofile). - Node.js ≥ 20.
Installation
Install the package into the
webprofile (this runspnpm addinside the profile directory):dsh plugin --profile web add dsh-setting-restartMount it as a loader entry by appending an
insertpatch to the profile's user patch layer —$DSH_HOME/profiles/web/cordis.patch.yml($DSH_HOMEdefaults to~/.dsh):# $DSH_HOME/profiles/web/cordis.patch.yml - insert: - id: setting-restart name: dsh-setting-restartStart (or restart) the service:
dsh webOpen Settings → General — the "一键重启" row is at the very bottom. Click 重启 to restart the service; the page reconnects automatically.
The same patch can be added to the home-level
$DSH_HOME/cordis.patch.ymlto enable the plugin for every profile.
Configuration
The loader entry accepts an optional config block:
- insert:
- id: setting-restart
name: dsh-setting-restart
config:
exitDelayMs: 1500 # delay between the click response and process exit (default 1200)
waitForExitMs: 30000 # how long the helper waits for the old process to exit (default 30000)
respawn: true # set false when a supervisor (systemd/pm2) already restarts the service
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Aisland-SJL/dsh-worktable
left0ver/dsh-file-review
yoli-mi/dsh-client-ui-custom
Fengze233/dsh-vscode
chouxiaohuai/dsh-uiskin-theme
meyaomiao/dsh-server-deck
gameswu/dsh-plugin-vscode-sidebar