DeepSeek Harness Plugin

aaron999-h/dsh-restart-account

Stars ★ 0 Category UI Enhancements Added 2026-11-16

Adds a "Restart DSH" row below the sign-out item in the account menu, so a freshly installed or updated plugin can be loaded without hunting for the desktop shortcut. The restart is performed by a hidden helper launched through WMI, so the relaunch survives the current process exiting; if the app does not come back within 12 seconds a notice offers a retry. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Install

# from a prebuilt release tarball

dsh plugin --profile web add "https://github.com/aaron999-h/dsh-restart-account/releases/latest/download/dsh-restart-account.tgz"

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:aaron999-h/dsh-restart-account

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

A restart entry for the DeepSeek Harness desktop app, placed in the sidebar account menu: open the bottom-left user menu and 重启 DSH / Restart DSH sits directly below 退出登录 / Sign out, with the same font size, colour and row height as the items above it.

Clicking it asks for confirmation, then closes the app and starts it again. That is what makes newly installed or updated plugins (and other Host-side changes) take effect without hunting for the window and relaunching by hand.

Why

After installing a plugin, DSH usually reports that a restart is required. Until now the only ways to restart were closing the window from the taskbar and reopening it, or using a developer-only menu item that is not part of a packaged build. This plugin puts the action where you already are when you change account-level settings.

Usage

  1. Click your avatar (or the … button when signed out) at the bottom-left of the sidebar.
  2. The menu shows 设置 / Settings, 意见反馈 / Feedback, 退出登录 / Sign out, and 重启 DSH / Restart DSH.
  3. Click 重启 DSH, confirm, and the app closes and reopens on its own.

What it does

  • Asks the desktop app's window to close normally; if it has not exited within 6 seconds, the main process is terminated.
  • Waits for the Host process to finish, then starts the same executable that is running the app.
  • Writes a step-by-step journal to %TEMP%\dsh-restart.log, so a failed restart can be diagnosed afterwards.
  • Never shows a console window: the relauncher is a .vbs host started through WMI, which runs PowerShell with its window hidden from creation, and it lives outside the app's process tree so it survives the shutdown it triggers.
  • If the app has not gone away within 12 seconds, the confirmation dialog stops saying “restarting” and shows the journal path plus a retry button instead of hanging.

The menu row only appears on the desktop app. In a browser session (dsh web) there is no Electron main process to relaunch, so the entry is hidden.

Requirements

  • DeepSeek Harness desktop app (@deepseek-ai/dsh-desktop) with the client-side account menu plugin, i.e. any regular 0.2.x desktop install.
  • Windows, macOS or Linux. The Windows path uses WMI + wscript.exe; other platforms use a sh helper with kill/exec.

Install

From the DSH plugin market: search for 重启 DSH / Restart DSH, install, then restart once (with this plugin you can use its own menu item after a manual restart).

From npm:

dsh plugin add dsh-restart-account

From source, as a local bundle:

dsh plugin add C:\path\to\dsh-restart-account

Either way the bundle is enabled by cordis.patch.yml, which inserts the plugin as dsh-restart-account.

Configuration

None. No settings, no network access, no telemetry. The only host routes it registers are local ones under /restart-dsh/:

Route Purpose
GET /restart-dsh/status Reports whether a restart is possible and the pids/exe involved.
POST /restart-dsh/restart Schedules the restart. Requires header x-dsh-restart: 1 and a same-origin request.
POST /restart-dsh/probe Runs the relauncher against a throwaway script, to verify the mechanism without restarting.

POST /restart-dsh/restart?dry=1 returns the generated script instead of running it.

Uninstall

dsh plugin remove dsh-restart-account

If you installed it from a local folder link, remove that link the same way. After uninstalling, the sidebar account menu returns to its original three items.

Notes

  • The account menu row is drawn by shadowing the settings.launcher slot at priority -1; the original launcher component stays registered underneath and is used again as soon as this plugin is disabled.
  • This plugin and any other plugin that rewrites the same launcher cannot both be active: a single slot accepts one registration per priority.

License

MIT

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.