LLL-lyh0/dsh-continue-guard ↗★ 0
dsh-continue-guard
一键「继续」:在输入栏提供一键续跑意外中断的会话;检测网络中断 / 上游截断(输出超限),恢复后 1~3 秒自动续跑;宿主重启后还能接上被进程退出打断、没跑完的回合。One-click continue for interrupted sessions, automatic resume after a network drop or an upstream cut, and startup recovery for turns a process exit left unfinished.
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LLL-lyh0/dsh-continue-guard配置
全部在 cordis.patch.yml,键与 Config 一一对应(有静态门禁盯着,写错键 = 加载器直接拒绝该行):
| 键 | 默认 | 说明 |
|---|---|---|
enabled | true | 总开关 |
text | 继续 | 手动点击与自动续跑发送的文本 |
autoResume | true | 自动续跑总开关;关掉只剩手动按钮 |
resumeDelayMs | 2000 | 网络恢复后到发出「继续」的等待(建议 1000–3000) |
maxAutoResumes | 3 | 连续自动续跑上限;人一说话就清零 |
autoResumeOnError | false | 普通错误是否也自动续跑 |
resumeOnTruncation | true | 输出在 max-tokens 处截断时是否自动续跑 |
probeUrls | deepseek / baidu / github | 连通性探测目标,按顺序试 |
probeTimeoutMs | 4000 | 单次探测超时 |
probeRetries | 5 | 一轮探测的重试次数 |
probeBackoffMs / probeBackoffMaxMs | 3000 / 30000 | 探测退避基数与上限 |
minResumeGapMs | 4000 | 两次自动续跑的最小间隔 |
pill / showReason | true / true | 按钮外观;是否把原因写进 hover 提示 |
verbose | false | 排查「为什么没自动继续」时打开 |
probeUrls 值得按环境改:某些网络会拦这些域名,探测连不上就会被当成「还没联网」。