dsh-update-plus: DSH Desktop Multi-Channel Update and One-click Restart

Foreword

DeepSeek Harness (DSH) desktop has built-in update capability, but for regular users there are two gaps: the update channel is hardcoded to nightly in the shell layer, and the UI offers no way to switch to stable, beta, or nightly builds; the “Restart application and Host” entry only appears in the menu of development builds, and is often missing from production packaged versions. After installing a new version or modifying plugins, users can only manually terminate the process and restart, or rely on incomplete update prompts.

The following introduces the community plugin dsh-update-plus (maintainer qiqqqqq517), which adds an “Update & Restart” panel to DSH settings: multi-channel update checking, direct download with SHA-512 verification, and a restart button located below the check-update control. The plugin is categorized as Client; its directory page is at SkillHub, and its source code and documentation are on GitHub.

What Is This

dsh-update-plus is an update and restart enhancement plugin for DeepSeek Harness desktop (npm package name dsh-update-plus, version 1.0.0 per current materials, license MIT). It does not change the official update source; instead, it lays out the three channels — stable / beta / nightly — and after checking, can directly download the official installer and verify the digest. At the same time, it provides the “Restart application and Host” entry missing from the packaged version in the panel.

The DSH compatibility range declared in package.json is >=0.1.7-rc.1, with profile support for desktop and web; the maintainer marks compatibility with 0.2.0-rc.1 and 0.2.0-rc.2 in the materials.

Core Features

Multi-Channel Update Checking and Download

The official desktop client hardcodes this.updater.channel to "nightly" in lib/main.js, so users cannot select a channel in the UI. This plugin provides segmented buttons in Settings → Update & Restart: Stable, Beta, and Nightly.

The three channels correspond to manifest files on the official production source; unreleased channels are marked as “Not released” rather than faking an update:

Channel Manifest Measured in Materials (2026-10-07)
Stable feeds/win-x64/latest.yml On 404, falls back to the official website’s “Download desktop version” direct link; version inferred by build size comparison; panel marked as “Official website direct link”
Beta feeds/win-x64/beta.yml 404 → Shows “Not released”
Nightly feeds/win-x64/nightly.yml 200 → Example version 0.2.0-rc.2

The panel also provides Check for updates and Directly download the latest version; downloads go through a streaming pipeline with SHA-512 verification, and if the digest does not match, the file is rejected and deleted. The materials record one full live download verification of nightly, where the byte count matched the manifest and the SHA-512 matched.

Current Installation Information and Settings

The same panel displays: application version, Harness version, installation directory, launcher, and built-in update configuration; the settings area includes download directory, manually specifying the installation directory, and wait seconds before restart (default 3 seconds).

One-Click Restart Application and Host

The Harness Host runs as a desktop shell process and cannot use Electron’s app.relaunch(). The plugin uses a detached cmd script: waits for a configured number of seconds, then uses taskkill /F to end the application, and after confirming the process has disappeared, uses start to launch the program; logs are written to ~/.dsh/dsh-update-plus/restart.log. Force-killing is deliberate: closing the shell window triggers preventDefault() and hides to the tray, and graceful closing may result in an extra tray instance after restart. The button is directly below “Check for updates” and carries a clear warning.

Known limitations (from README): Restart currently only supports Windows; on macOS the button refuses and prompts to use the menu. Force-killing the application interrupts in-progress replies; for stable, when there is no latest.yml, the version number is inferred; the restart button cannot become a native menu item in the Electron main process (that requires a desktop-bridge type solution, which this plugin deliberately does not provide).

Architecture Highlights

The Host half at /dsh-update-plus/api provides JSON interfaces (state / check / download / progress / cancel / restart / openFile / settings); the Client half injects the panel via settings.section (ModuleLoader bundle, no build required). Both use a self-built HTTP route rather than generated Remote/typert interfaces, to reduce the impact of cross-Harness version changes.

Main files: lib/core.js (channels, manifests, download and verification, restart scripts), lib/index.js (Host), lib/client.js (Client), cordis.patch.yml, install.mjs.

The installation method writes "dsh-update-plus" to the profile’s dsh.profile.bundles and copies the package to node_modules, rather than only hand-writing an insert line in cordis.patch.yml — the materials explain that the latter may be treated by the plugin manager as “discovered but not enabled”. The plugin runs with the current DSH process permissions; please review the source code and the MIT license before installing.

Installation and Activation

The installation steps in the materials are as follows (the username in the example path needs to be replaced with your local profile):

# Do I need to close DSH Desktop first? No; just restart once after installation
node "C:\Users\30458\.dsh\plugins\dsh-update-plus\install.mjs"

After installation, restart DSH Desktop once, or click the restart button in the panel to reload, then open Settings → Update & Restart.

Uninstallation:

node install.mjs --revert

Installation places the plugin itself at <profile>\node_modules\dsh-update-plus\ and adds a record to dsh.profile.bundles in <profile>\package.json (the first time, it is backed up as package.json.bak_update-plus). If pnpm install is run in the profile, it may clear the non-managed copy; just run install.mjs again to restore it.

Typical Usage

  1. Open DSH Desktop → Settings → Update & Restart.
  2. Select Stable, Beta, or Nightly under Update channel.
  3. Click Check for updates to see each channel’s result; when an installer is needed, click Directly download the latest version and wait for the progress bar and verification to complete.
  4. After updating or modifying plugins, click Restart application and Host below the check-update control (Windows; it force-kills the application, so save your work first).

The maintainer provides a test entry point in the plugin directory:

cd "C:\Users\30458\.dsh\plugins\dsh-update-plus"
node run-tests.mjs

The materials explain that tests run in the Host runtime environment and include the core, download, routes, cordis loading, client rendering, and install suites.

Applicable Scenarios and Notes

Who it’s for: Developers or advanced users who use DSH desktop long-term, want to follow official builds by channel, and want to complete download verification and Host restart within the same settings page.

Notes:

  • The plugin shares the same local process permissions as DSH; please read the repository source code and the LICENSE before installing.
  • The community directory SkillHub is independent of DeepSeek / High-Flyer and is not an official app store; the DSH ecosystem emphasizes “everything is a plugin”, and third-party plugins require you to assess trust and compatibility yourself.
  • While the official desktop client is still in public preview, there may be only a valid nightly manifest; the stable version falling back to a direct link and the beta version showing “Not released” are honest feedback, not plugin failures.

Conclusion

dsh-update-plus brings together the desktop client’s missing “optional channel updates + verified direct download” and “Host restart available in the packaged version” in one settings panel, implementing it with zero build and zero additional runtime dependencies as far as possible, and using the bundle approach to ensure it works out of the box. For details, limitation descriptions, and the release process, refer to the GitHub README; to browse metadata in the directory site, open the SkillHub plugin page.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye