dsh-restart
应用内整体重启:agent 或人工触发,协调忙碌会话,失败回滚并恢复任务。 适合需在会话中重启 DSH 的用户;要求 DSH 版本含 appRestart 服务。
同名套件的其他儲存庫
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Towzai/dsh-restart說明文件
閱讀完整 README ↗方式三:本地路径(开发 / 本机使用)
dsh plugin --profile web add D:\path\to\dsh-restart
手动配置(任意方式安装后可选)
在 profile 的 cordis.patch.yml 中按需覆盖配置:
- id: dsh-restart
name: 'dsh-restart'
config:
waitTimeoutMs: 900000 # when=wait 最大等待 ms(默认 15 分钟)
安装完成后重启一次 DSH:侧边栏出现「🔄 重启」按钮,agent 获得 dsh_restart 工具。
使用
Agent 自主
对 agent 说:
请重启 DSH,等其它会话任务完成后执行,原因:更新插件配置
agent 会调用 dsh_restart({ when: 'wait', reason: '...' });重启完成后本会话自动恢复,agent 继续原任务并向你汇报结果。
人工
侧边栏底部「🔄 重启」→ 立即重启 / 等任务完成后重启。
配置项
| 配置 | 默认 | 说明 |
|---|---|---|
waitTimeoutMs | 900000(15 分钟) | when=wait 的最长等待时间(1000 ~ 24h) |
stateDir | /restart | notice 与诊断日志目录 |