ptrel1/dsh-interrupted-resume ↗★ 0
dsh-interrupted-resume
崩溃重启后自动检测并恢复中断的会话 适合需要保障长对话连续性、防止因异常中断导致会话丢失的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ptrel1/dsh-interrupted-resume說明文件
閱讀完整 README ↗配置
{
promptWindowMs: 12 * 60 * 60 * 1000, // 候选窗口
startupDelayMs: 5_000, // 启动后延迟多久开始扫
quietMs: 30 * 1000, // 中断后静置多久才续
maxAttemptsPerSession: 6, // 滑动窗口内最多自动续几次
attemptResetMs: 60 * 60 * 1000, // 距上次续跑超这么久,计数归零
enabled: true,
dryRun: false, // true = 只记日志不注入
}