ptrel1/dsh-interrupted-resume ↗★ 0

dsh-interrupted-resume

DSH crash-recovery companion: after a restart, detect sessions whose last turn was force-interrupted and re-inject a safe "continue" prompt (with state-verification instructions). 适合需要保障长对话连续性、防止因异常中断导致会话丢失的用户。

Package
dsh-interrupted-resume
Compatibility
Unverified
Version
0.2.4
License
MIT
Last updated
Oct 23, 2026

Install

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

配置

{
  promptWindowMs: 12 * 60 * 60 * 1000,  // 候选窗口
  startupDelayMs: 5_000,               // 启动后延迟多久开始扫
  quietMs: 30 * 1000,                  // 中断后静置多久才续
  maxAttemptsPerSession: 6,            // 滑动窗口内最多自动续几次
  attemptResetMs: 60 * 60 * 1000,      // 距上次续跑超这么久,计数归零
  enabled: true,
  dryRun: false,                       // true = 只记日志不注入
}