Adds a restart button to the Session header, so a plugin change no longer needs the tray menu in the bottom-right corner of the screen. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-app-restart
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:RayZan-J/dsh-app-restart
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
Restart the DeepSeek Harness desktop app from a button in the Session header.
The shell's only restart entry is the tray menu in the bottom-right corner of the screen. While you are iterating on a Host-side plugin you pay that trip over and over. This bundle puts the same action in the window: one 28px icon next to the header's other utilities.
| Press | What happens |
|---|---|
| First click | the button turns red and reads 再点一次重启 / Press again to restart for four seconds |
| Second click | the page shows 正在重启…, then the app closes and reopens |
Ctrl+Alt+Shift+R |
arms the button exactly like a click, so a stray chord restarts nothing |
A restart ends the page, so the press is deliberately two steps; there is no way to restart by accident.
Install
In DSH, open Plugins → Add plugin and enter one of:
dsh-app-restart— from npmRayZan-J/dsh-app-restart— straight from this repository- an absolute path to a clone of this repository
Enable the bundle, then reload the page once so the button loads.
How it works
A plugin runs inside the shell's Node host, which has no app.relaunch(): the only message the parent channel accepts from it is a shutdown request. So the bundle reproduces the tray item from the outside.
- The page
POSTs to/app-restart/restartwith anx-app-restartheader. The desktop window sends noOriginat all: the shell serves it fromdsh-app://appand deletes that header before forwarding the call to this listener. The Host first runs DSH's own admission gate (connection.requestRejection): Host and Origin fences plus the signed browser credential it issued. The shell's proxy forwards that cookie, so the button is admitted; a request without it is refused before anything is scheduled. - The Host writes a PowerShell helper to
$DSH_HOME/app-restart/—restart.ps1plus arestart.jsonnaming the request — and starts it throughcmd /c start, which gives it a console and a parent chain of its own. The helper has to outlive the process that spawns it. - The helper waits, asks the app to close, stops whatever is left of the same executable, and starts it again.
- Every step is appended to
$DSH_HOME/app-restart/restart.log.
Limits
Desktop app only. A page served by
dsh webhas no shell to relaunch; the button reportsnot-the-desktop-appand does nothing.A restart ends the page and any turn that is running. Session logs, queued messages and drafts are on disk and come back.
The close request usually falls through to a hard stop: a shell that only hides its window never leaves the process table. Session events are committed one at a time, so a restart does not roll back what was already written.
A page opened from a reverse-proxy hostname is refused (
cross-origin-restart); only the Host's own origin, or the app window's origin-less call, may restart it.The route is closed to callers DSH does not admit: without the browser credential this Host issued it answers 401/403 (
not-admitted) and never starts the helper. A page you open at the Host's own origin still holds that credential, which is why the button works there too.If the app does not come back, start it by hand — the log names the step that failed. The helper can also be run manually, using the request
restart.jsondescribes:powershell -NoProfile -ExecutionPolicy Bypass -File "$env:DSH_HOME\app-restart\restart.ps1"
Licence
MIT
Links
More in this category
yjh051108/dsh-routing-suite★ 7028
One repository, three parts: a runtime injector for DSH plugin packages (inject, hot-reload, unload, promote a dev staging tool to the front, route self-heal, plus a settings-page plugin manager that lists, unloads and drags folders in to internalize), a task-aware reasoning-mode router agent preset (router-standard / router-spec / router-react), and a graded two-level task protocol whose six tools (commit_star, lock_stage, revise_do, edit_plan, mark_task, redteam_verdict) pin task state to disk. The injector implementation ships in-tree, so the install carries its own behaviour rather than a dependency list.
strukto-ai/mirage#dsh★ 3954
Swaps the filesystem and bash providers for a mirage virtual workspace: file tools and shell commands run over mounted resources (RAM, S3, Redis, Slack, Gmail, Notion, Postgres) instead of the host disk, with per-mount read/write/exec modes, per-command sandbox routing (monty, pyodide, quickjs in process; docker, e2b, daytona remote), and installed CLIs (git, gh, slack, linear, ntn, gws, or one you register) as head words in the virtual terminal.
first-fluke/oh-my-agent#dsh★ 1496
Runs project OMA checks before and after tool execution and when a turn tries to finish. Installs its OMA CLI dependency and initializes unconfigured projects on first use. Requires Node.js 22+; initial setup needs network access and project write access.
MichengAI/dsh-skills-manager★ 641
Manages local DeepSeek Harness skills in Settings and shows shared Agent skills as read-only.
hust-open-atom-club/oh-dsh★ 326
Community distribution: TUI, desktop, and Web UI as one bundle with layered installation.
Fishquito7/dsh-skill-mcp-panel★ 292
Manages DSH skills and MCP servers from the web settings: skill cards with hot enable/disable, workspace scopes, groups, batch migration and drag-and-drop import, plus stdio/HTTP MCP CRUD with connection tests, secret redaction and the unified dsh-panel CLI.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.