Adds a restart button to the DSH Web UI through a loopback-only endpoint that requests a relaunch using the current process executable, arguments and working directory.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:BaoBao1996121/dsh-restart-ui
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 small DeepSeek Harness plugin that adds a restart button to the Web UI.
It restarts the exact DSH invocation that is currently running, so it works with source checkouts, installed CLIs, portable Node.js, and custom profiles without hard-coded machine paths.
Install
Install the tagged release into the Web profile:
dsh plugin --profile web add 'github:BaoBao1996121/dsh-restart-ui#v0.1.1'
When running DSH from a source checkout, use its source launcher instead:
corepack pnpm dsh plugin --profile web add 'github:BaoBao1996121/dsh-restart-ui#v0.1.1'
Restart DSH after installation. A ⟳ Restart button appears in the session
header utilities area.
How it works
- The client bundle adds one button and calls a same-origin POST endpoint.
- The host endpoint accepts loopback requests only.
- A package-local Node helper waits for the old process to exit, then relaunches the same executable, Node arguments, CLI arguments, and working directory.
- The route registration is owned by the plugin lifecycle and is removed when the plugin is disabled.
The package commits its built lib/ artifacts. GitHub installs therefore do
not need to run a lifecycle build script or request pnpm build permission.
Development
Requires Node.js ^22.19.0 || >=24.0.0 and pnpm 11.
corepack pnpm install --frozen-lockfile
corepack pnpm check
Remove
dsh plugin --profile web remove dsh-restart-ui
Security
Restarting DSH executes code with the current user's privileges. This plugin does not accept a command or filesystem path from the browser: it starts one fixed helper shipped in this package, and that helper reuses the current DSH process invocation. Review and pin the release you install.
License
MIT. This is an independent community plugin and is not affiliated with or endorsed by DeepSeek.
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10696
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10696
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8484
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7509
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5395
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1082
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.