@luoshuizhiwei/dsh-desktop-restart avatar

@luoshuizhiwei/dsh-desktop-restart

DeepSeek Harness 桌面版重启插件:会话标题栏按钮 / 斜杠命令 / 设置页入口,经分离的 helper 重启整个 Electron 应用

PluginDesktopStorage
Verification
L5 · Run tested
Verified
Risk
LowRisk
Health
Active
Trust
Gold

Install verification: runtime verified (L5) · tested on dsh 0.2.1-rc.2 · last checked Install verification details →

Install verification badge dsh 0.2.1-rc.2

What it doesAI

Restart plugin for the DeepSeek Harness Electron desktop app, adding restart entry points and cleaning leaked temp snapshots.

  • Adds restart entries in sidebar, session title bar, settings, plus /restart desktop command
  • Each entry point can be toggled individually from the plugin's settings section
  • Cleans DSH temp snapshot folders and can hide the feedback menu item
desktopAIstorageAI

Capability tags are AI-inferred or rule-extracted from the README (see badge) — vocabulary-limited, not install-verified. AI = inferred; README = literal keyword from the readme.

Installation

dsh plugin --profile web add @luoshuizhiwei/dsh-desktop-restart
verified 0.3.3

Install method: npm · runtime verified (L5)

Verification & Compatibility

Grouped by plugin version: each card lists the dsh versions actually tested against that artifact version and their install verdicts (L5 wins). Untested combinations are omitted — absence means untested, never assumed compatible. L1–L3 are a plugin-level static archive (independent of the dsh version — the same verdict on every dsh row): they sit in each row's level grid next to L4/L5, marked "static", while their evidence is stored once per plugin inside that row's "checks & evidence" instead of being duplicated per version.

External credentials (plugin-level): none detected

Declared DSH compatibilityfrom package.json · peerDependencies
author declared no dsh version requirement

○ The author declares no dsh version requirement — install is not blocked by version.

Install compatibility matrix (rows = plugin versions〔latest 5〕, columns = dsh versions〔latest 5〕)
At-a-glance → evidence in the cards below
plugin \ dshdsh 0.2.1-rc.2
current
dsh 0.2.1-alpha.2
0.4.4··
0.3.3✓✓
v0.3.0··
Install compatibility (by plugin version, dsh versions within)
Legend:✓ L5 runtime verified○ ecosystem plugin◼ ecosystem app✗ failed
0.4.4npm2026-10-21

@luoshuizhiwei/dsh-desktop-restart

No runtime install test for this version (static scan only) — compatibility unknown, never assumed.

0.3.3npm✓ 2 runtime-verified2026-10-19

@luoshuizhiwei/dsh-desktop-restart

✓dsh 0.2.1-rc.2current2026-10-19L5 · runtime verified
Environment & artifact
  • • Node.js: v24.14.0
  • • DSH: 0.2.1-rc.2
  • • Plugin artifact: npm · @luoshuizhiwei/dsh-desktop-restart@0.3.3
Levels (L1–L3 plugin-level static archive · L4/L5 newest real verdicts for this combination)
L1 static
Passed
L2 static
Passed
L3 static
Passed
L4 sandbox
Passed
L5 runtime
Passed
Install + runtime smoke verified in the dsh sandbox — installs and runs
L5 · runtime verified · valid for dsh 0.2.1-rc.2

ID: dsh-desktop-restart@0.3.3@dsh0.2.1-rc.2 · profile: l4-sandbox

Issued: 2026-10-19 · expires: 2026-10-26

View checks & evidence
L1 · Found✓ Passed

↳ carried from earlier record dsh-desktop-restart@0.4.4@dsh0.2.1-rc.2 (l3-fullscan)

Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L2 · Structured✓ Passed

↳ carried from earlier record dsh-desktop-restart@0.4.4@dsh0.2.1-rc.2 (l3-fullscan)

Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L3 · Install spec✓ Passed

↳ carried from earlier record dsh-desktop-restart@0.4.4@dsh0.2.1-rc.2 (l3-fullscan)

Install command parsed✓ Passed
Source: registry verification · Method: install spec parse · Captured 2026-10-21
DSH version declared✓ Passed
Source: registry verification · Method: DSH version declaration · Captured 2026-10-21
L4 · Install tested✓ Passed
Install executed in confined sandbox✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-19
spec @luoshuizhiwei/dsh-desktop-restart · channel npm package · outcome ran · exit 0
check took: 2.3s
Install succeeded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-19
spec @luoshuizhiwei/dsh-desktop-restart · channel npm package · outcome ran · exit 0
check took: 2.3s
Installed artifact confirmed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-19
spec @luoshuizhiwei/dsh-desktop-restart · channel npm package · outcome ran · exit 0
check took: 2.3s
L5 · Run tested✓ Passed

active in loader tree (150 entries)

Sandbox install passed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-19
spec @luoshuizhiwei/dsh-desktop-restart · install mode reused L4 scratch
check took: 27ms
Web boot ready✓ Passed
Source: DSH runtime · Method: web boot · Captured 2026-10-19
ready line dsh web: http://127.0.0.1:54097/?token=…
HTTP endpoint served✓ Passed
Source: DSH runtime · Method: HTTP request · Captured 2026-10-19
path / · HTTP 200 · took 27ms
Plugin active in inventory✓ Passed
Source: DSH runtime · Method: plugin inventory query · Captured 2026-10-19
verdict active · entries 150
match: include:dsh-desktop-restart · @luoshuizhiwei/dsh-desktop-restart · phase active
phases: active 122 · null 28

L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.

✓dsh 0.2.1-alpha.22026-10-15L5 · runtime verified
Environment & artifact
  • • Node.js: v24.14.0
  • • DSH: 0.2.1-alpha.2
  • • Plugin artifact: npm · @luoshuizhiwei/dsh-desktop-restart@0.3.3
Levels (L1–L3 plugin-level static archive · L4/L5 newest real verdicts for this combination)
L1 static
Passed
L2 static
Passed
L3 static
Passed
L4 sandbox
Passed
L5 runtime
Passed
Install + runtime smoke verified in the dsh sandbox — installs and runs
L5 · runtime verified · valid for dsh 0.2.1-alpha.2

ID: dsh-desktop-restart@0.3.3@dsh0.2.1-alpha.2 · profile: l3-fullscan

Issued: 2026-10-15 · expires: 2026-10-22

View checks & evidence
L1 · Found✓ Passed

↳ carried from earlier record dsh-desktop-restart@0.4.4@dsh0.2.1-rc.2 (l3-fullscan)

Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L2 · Structured✓ Passed

↳ carried from earlier record dsh-desktop-restart@0.4.4@dsh0.2.1-rc.2 (l3-fullscan)

Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L3 · Install spec✓ Passed

↳ carried from earlier record dsh-desktop-restart@0.4.4@dsh0.2.1-rc.2 (l3-fullscan)

Install command parsed✓ Passed
Source: registry verification · Method: install spec parse · Captured 2026-10-21
DSH version declared✓ Passed
Source: registry verification · Method: DSH version declaration · Captured 2026-10-21
L4 · Install tested✓ Passed
Install executed in confined sandbox✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec @luoshuizhiwei/dsh-desktop-restart · channel npm package · outcome ran · exit 0
check took: 5.9s
Install succeeded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec @luoshuizhiwei/dsh-desktop-restart · channel npm package · outcome ran · exit 0
check took: 5.9s
Installed artifact confirmed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec @luoshuizhiwei/dsh-desktop-restart · channel npm package · outcome ran · exit 0
check took: 5.9s
L5 · Run tested✓ Passed

active in loader tree (150 entries)

Sandbox install passed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec @luoshuizhiwei/dsh-desktop-restart · install mode reused L4 scratch
check took: 352ms
Web boot ready✓ Passed
Source: DSH runtime · Method: web boot · Captured 2026-10-14
ready line dsh web: http://127.0.0.1:55956/?token=…
HTTP endpoint served✓ Passed
Source: DSH runtime · Method: HTTP request · Captured 2026-10-14
path / · HTTP 200 · took 352ms
Plugin active in inventory✓ Passed
Source: DSH runtime · Method: plugin inventory query · Captured 2026-10-14
verdict active · entries 150
match: include:dsh-desktop-restart · @luoshuizhiwei/dsh-desktop-restart · phase active
phases: active 122 · null 28

L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.

v0.3.0github2026-10-14

https://github.com/luoshuizhiwei/dsh-desktop-restart

No runtime install test for this version (static scan only) — compatibility unknown, never assumed.

Author badges

Embed the official badges in your README to showcase security & install-test status:

dsh.so risk
`[![dsh.so risk](https://www.dsh.so/badge/dsh-desktop-restart.svg)](https://www.dsh.so/artifact/dsh-desktop-restart/)`
dsh 0.2.1-rc.2 install verified
`[![dsh.so install · dsh 0.2.1-rc.2](https://www.dsh.so/badge/install/dsh-desktop-restart@0.2.1-rc.2.svg)](https://www.dsh.so/artifact/dsh-desktop-restart/)`

Security Report

Two automated layers, neither a manual review: a static scan (per-plugin rule checks) and a model-driven dynamic security audit that covers only the subset static-flagged at warn or above and never executes plugin code.

dsh-desktop-restartAutomated review · daily

Static low, dynamic medium — stricter wins → overall medium.

static low→dynamic medium→overall medium
0 critical·0 high
mediumoverall · medium
1static scan · vet primaryvet AST static analysis (npm artifact or git source)
plugin versionv0.4.4dsh manifest
scanned version0.4.4npm2026-10-21
current version0.4.4same version
vet verdictclean · npm

Vet is an AST static scan (npm artifact or git source).

show static findings (11)
  • warningchildProcess · code-execlib/helper.cjs:246

    const child = spawn(shell, ['-NoProfile', '-NonInteractive', '-EncodedCommand', encoded], {

  • warningchildProcess · code-execlib/helper.cjs:492

    const child = spawn(exe, relaunchArgs ?? [], {

  • warningshellExec · shelllib/helper.cjs:205

    out = execFileSync(shell, ['-NoProfile', '-NonInteractive', '-EncodedCommand', encoded], {

  • warningshellExec · shelllib/helper.cjs:317

    execFileSync('taskkill', ['/PID', String(pid), '/F'], { stdio: 'ignore', windowsHide: true })

  • warningshellExec · shelllib/helper.cjs:336

    const out = execFileSync('tasklist', args, { encoding: 'utf8', windowsHide: true })

  • warningfsWrite · fileslib/helper.cjs:592

    fs.appendFileSync(logPath, `[${new Date().toISOString()}] ${line}\n`)

  • warningchildProcess · code-execlib/index.js:668

    const helper = spawn(process.execPath, [HELPER_PATH, handoffPath], {

  • warningnetIp · networklib/index.js:408

    return new URL(url ?? '/', 'http://127.0.0.1').searchParams.get('force') === '1'

  • warningnetIp · networklib/index.js:421

    return new URL(url ?? '/', 'http://127.0.0.1').searchParams.get('wait') === '1'

  • warningnetIp · networklib/index.js:434

    return new URL(url ?? '/', 'http://127.0.0.1').searchParams.get('cancelWait') === '1'

  • warningnetIp · networkscripts/smoke.mjs:118

    origin: overrides.origin ?? 'http://127.0.0.1:19387',

2model reads redacted source context · never executes plugin code
highest grademedium
merged intooverall medium
audited at2026-10-17
findings0 critical·0 high1 medium / 2 low hidden
show 3 audit findings
  • mediumRestart endpoint has no shared secret; any local process can force a kill/relaunch of the desktop applib/index.js:278

    Authorization rests entirely on heuristics: loopback peer, a loopback Host header, and either an Origin equal to that Host or, when Origin is absent, the desktopForwarded() branch that accepts the request as long as there is no Sec-Fetch-Site/forwarded header. A browser cross-site POST is blocked, but any local process can simply omit Origin and POST /dsh-desktop-restart/api/restart?force=1, which passes the check, bypasses the 'tasks are running' guard and makes the helper taskkill /F the Electron main process and relaunch it, interrupting in-progress agent work. On Windows, loopback is not i

  • lowClient half hides the host app's built-in account-menu item by default via text-matched DOM mutationlib/client.js

    A MutationObserver over the whole document.body subtree removes a built-in navigation entry (feedback) from the host UI by default, outside the plugin's own declared slots; the user only learns this if they open the plugin's settings section. Matching is by button text only, so a host UI that reuses the label would also be hidden until the switch is turned off.

  • lowHelper's fallback terminates every process with the app's image name when the path query is unavailablelib/helper.cjs

    When the encoded-PowerShell query fails or no entry matches the target executable path, the helper degrades to matching by image name alone and runs taskkill /F on every matching pid except helper/main/host. A second installation or portable copy of the same application can therefore be terminated, and the process-identity check that the rest of the file carefully preserves is silently dropped on this last-resort path.

Restart is loopback+Origin gated and helper kills only the app's own image, but there is no shared secret (any local process can force a restart) and the client hides a built-in menu item by default.

Rule: the dynamic audit can only raise risk, never lower it (raise-only, never an exemption); a wrong raise is withdrawn by human review and the tier falls back to the static verdict. Overall verdict = the stricter of the two layers.

Disclaimer: the static scan and the dynamic security audit are both automated analysis, not a security guarantee. Always review what you install.

Activity

Last commit 2026-10-21 · activity: Active

• Repo created: 2026-10-05

• Stars: ★ 3 · Forks: 0

• Health: Active — committed within last 30 days

Source

GitHub: github.com/luoshuizhiwei/dsh-desktop-restart

Was this page helpful?