dsh-web-restart
DSH web plugin: restart the dsh web service from the UI, with an optional auto-continue switch (设置 → 插件 → 插件配置) that resumes sessions interrupted by the restart. Host half exposes /plugin/dsh-web-restart (status + restart request) and /plugin/dsh-web-restart/config (auto-continue switch, settings domain); the browser half adds a restart button to the very bottom of the left rail (sidebar.rail.footer, visible in every layout — home / session / calendar) that opens a centered confirm modal before sending the request, plus a plugin-configuration card (设置 → 插件 → 插件配置). The actual kill/start is performed by the launchd supervisor (com.dsh.web-supervisor), which polls ~/.dsh/dsh-web.restart-request.
AI 分析
核心用途是允许用户直接在网页端一键重启DSH服务,并能自动恢复因重启中断的Agent会话。适合需要频繁调整配置或重启服务的DSH用户。
インストール
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:qschen86/dsh-web-restartドキュメント
README 全文を読む ↗配置方式(二选一)
- 设置界面(推荐):设置 → 插件 → 插件配置 → 展开"重启服务设置"卡片 → 切换开关 → 保存。 (若卡片因部署差异未显示,用重启弹窗内的同名开关,效果相同。)
- 设置文档 / 补丁:用户覆盖写入
~/.dsh/settings.yaml的web-restart分节(直接编辑该文件也会被 watcher 热发布):
组装默认值在插件的web-restart: autoContinueAfterRestart: truecordis.patch.yml(config.autoContinueAfterRestart: false),机器级补丁(~/.dsh/cordis.patch.yml整行替换该行)可改默认值。 优先级(settings 领域标准):用户设置分节 > 注册方 base(entry 配置)> schema 默认 false。 旧版本写在~/.dsh/dsh-web-restart.json里的开关会在首次启动时自动迁移进设置文档(该文件此后只存运行状态)。