Repository navigation
Releases
v1.0.0 - restart Harness from the sidebar
First release.
Adds a rail entry to the DSH sidebar and a panel behind it. Pressing the
button closes DeepSeek Harness and starts it again.
Windows only. The relaunch uses Windows facilities: wscript.exe for a
windowless launch and taskkill to terminate. On macOS and Linux the rail
entry still appears, but pressing it fails cleanly.
Why a plugin
Harness ships a restart item in its Applications menu, but it sits behind a
development flag production builds never satisfy. Patching app.asar to move
it out of that gate works exactly once: the updater replaces the archive
wholesale, and the patch is gone. This plugin lives in the DSH profile, which
updates do not touch.
How it works
The plugin runs inside the process being restarted, so the work goes to a
detached worker:
rail button
-> POST /dsh-relaunch/restart (Host half)
-> wscript.exe launch-hidden.vbs (no console allocated)
-> DeepSeek Harness.exe (Node mode, windowless)
-> restart-harness.mjs (terminate, wait, start, verify)
Two details are load-bearing. The launcher is wscript.exe rather than
powershell.exe, because PowerShell is a console-subsystem program and the
WMI detach route cannot request CREATE_NO_WINDOW ??that was the black window
flashing on every restart. And the worker strips ELECTRON_RUN_AS_NODE before
starting the app: that variable is what makes the worker run as Node, it is
process-scoped, and an Electron binary inheriting it comes back as a bare Node
runtime with no application logic that exits within a second. The first version
did not strip it, so pressing the button left the user with nothing running.
Install
npm install @yishuiliufang/dsh-relaunchThen add it to your profile's dsh.profile.bundles. A profile restart is
required before the sidebar gains the entry.
Tests
44 checks across three suites, no dependencies, no DSH host required.