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 许可证开源,完全免费使用,没有任何额外的功能限制或使用收费。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 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.

dsh-plugin

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 dsh command (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 (the web profile).
  • Node.js ≥ 20.

Installation

  1. Install the package into the web profile (this runs pnpm add inside the profile directory):

    dsh plugin --profile web add dsh-setting-restart
    
  2. Mount it as a loader entry by appending an insert patch to the profile's user patch layer — $DSH_HOME/profiles/web/cordis.patch.yml ($DSH_HOME defaults to ~/.dsh):

    # $DSH_HOME/profiles/web/cordis.patch.yml
    - insert:
        - id: setting-restart
          name: dsh-setting-restart
    
  3. Start (or restart) the service:

    dsh web
    
  4. Open 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.yml to 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 →

← 上一个 Prev dshline 下一个 Next dsh-bg-new →