Asteroid0449/dsh-restart-resume0

dsh-restart-resume

DSH 优雅重启与会话续接插件,支持排空检查、Web 状态倒计时及重启后原会话自动续接。

AI 分析

核心用途是提供受监督的安全重启与无缝会话恢复。适合需要频繁更新配置或插件,且不希望中断当前对话上下文的 DSH 用户。

套件
dsh-restart-resume
版本
0.2.2
授權
MIT
最近更新
2026年8月21日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Asteroid0449/dsh-restart-resume

配置

配置项默认值范围/作用
defaultDelaySeconds105–3600,进入排空前的计划延迟
drainTimeoutSeconds1800300–86400,等待工作排空的上限
finalCountdownSeconds105–300,退出前的最终倒计时
pollIntervalMs250100–2000,状态检查间隔
maxRestarts / restartWindowSeconds见 patch重启频率上限
resumeTtlSeconds86400待续接 marker 有效期
resumePrompt内置安全提示追加到原会话的固定续接文本

单次 dsh_restart 可设置 delaySecondsmaxWaitSecondsresumeModeafterRestart,但不能突破安全下限。