RoyougiShiki/dsh-restart-systemd

RoyougiShiki★ 0TypeScriptLast synced: 2026-08-15

Open on GitHub

DSH WebUI 重启按钮(systemd 版):侧栏一键重启 dsh-web,WSL/Linux systemd 通道 + Windows 分支,/restart 命令,会话自动续接

README excerpt

dsh-restart-systemd English summary. A DeepSeek Harness WebUI restart button (systemd edition). Adds a sidebar‑footer restart trigger next to the remote‑web‑ui phone icon plus a /restart command. Clicking schedules systemctl --user restart dsh-web ( 3s later, so the browser gets its 202 first), dups are refused ( 409 ), non‑loopback callers are refused ( 403 ), a flag‑file + residual‑window design prevents restart loops, and after the service comes back up the browser auto‑reconnects without a manual refresh (ConnectionController exponential backoff 500ms→10s) while interrupted agent turns are auto‑resumed . Platform: WSL/Linux → systemctl --user (primary, tested); Windows → detached helper branch is present but unused on WSL. GitHub topics (主代理创建仓库时使用): dsh · dsh-plugin · restart · systemd 设计总览 双面插件(与 dsh-client-ui-aionui-panel 同构): 半边 entry(exports) 运行环境 职责 host "." → lib/index.js node(宿主导进) /api/restart-dsh 路由、 /restart 命令、flag/resume 状态、restart-recover client "./client" → lib/client.js 浏览器(WebUI) 侧边栏 footer 重启按钮 + 二次确认 + 状态反馈 内部依赖:官方 socket sidebar.footer.action (list/root additive,remote-web-ui 电话图标同座)+ 备选 conversation.session.header.utilities 。 重启流程 1. 点按钮(或输入 /restart )→ 二次确…

View full README on GitHub →
Tools / Devdshdsh-pluginrestartsystemdsidebaragent

Category