7AAAAAH/dsh-restart-app
A Restart DSH button in the sidebar foot that stops every process of the desktop app and starts it again.
Reloading the page does not revive a wedged Host — the Host owns the session, the tool subprocesses and the plugin state — and on Windows quitting one window can leave a tree of DeepSeek Harness.exe children behind. One click restarts the application from the inside: the Host answers 202 immediately, writes a stage script that launches a helper and exits so the helper has no live ancestor left by the time the application dies, and the helper waits 900 ms for the HTTP response to flush, stops every process whose image name is the application's or whose executable lives under the application directory, waits for the process table to clear, then relaunches. Five seconds later it records whether the new instance survived, and the page polls its own origin once a second so it reloads itself into the fresh instance.
Install
dsh plugin --profile desktop add github:7AAAAAH/dsh-restart-appThe README's install line (PowerShell examples, since the plugin targets the packaged Windows desktop app); a local-checkout form using link:C:\path\to\dsh-restart-app is also given. Restart the application once after installing so the profile picks the plugin up — after that the button sits in the sidebar foot next to the settings gear. Remove with dsh plugin --profile desktop remove dsh-restart-app.
Compatibility
Built for the packaged Windows desktop app. On any other Host — dsh web, dsh tui, a plain Node process — the button hides itself, because there is nothing to restart and a browser session must never be able to kill its own terminal. The README points at the helper log under %TEMP%\dsh-restart-app\<stamp>\helper.log as the first place to look when something goes wrong.
Details
- Repo: 7AAAAAH/dsh-restart-app
- Category: Development & Runtime
- Stars: 0
- Version: installed from the repository (README documents no npm publication)
Alternatives
keyiadiannao/dsh-restart-button · aokamoaki/dsh-startup-guard · iiwish/dsh-testkit