快速了解
它能做什么
让符合条件的 DSH 模型回复从已流式生成的部分内容继续,而不是从零开始重试。
本站提供的是中文说明,不代表该项目或 Plugin 自身提供中文界面;语言支持请以上游文档为准。
Web Profile
Not declared in supplied evidence
证据已验证
核对日期 2026/9/10 UTC 14:28
有代码证据的贡献
它为 DSH 增加什么
将已捕获的部分输出带入下一次请求,以重试符合条件的模型回复中断。
机制证据 ↗选择前先看
此 DSH 插件处理部分流式中断,例如 TIMEOUT、TRANSPORT、SERVER 和 RATE_LIMIT。存在部分输出时,它会加入一条可见的自动续接引导消息,并让模型继续;否则仍交给常规重试流程。
适合谁
使用较慢或不稳定模型端点、希望长回复在断线后续接的 DSH 用户。
常见任务
- 在端点暂时失败后继续一段较长的流式回答。
- 已生成部分内容时避免整段回答从头重复。
- 配置每轮续接次数、可续接错误码、等待时间或引用内容上限。
权限与数据
插件读取当前尝试的会话事件片段,并将捕获的部分输出放入下一次重试的可见引导消息。
权限- 访问 DSH 的 request-error 和会话事件流程。
- 能够对重试中的 agent turn 发出引导。
- 捕获中断尝试中的可见文本和推理片段。
- 最多将配置上限内的部分输出引用到续接请求的上下文。
- 提供的证据未声明外部服务或凭据要求。
- 未声明。
局限
- 不会续接用户取消、非瞬态失败、没有部分输出或工具调用中途发生的中断。
- 续接后的回答可能改写中断边界处的句子。
- 默认每轮最多续接三次,之后回退到常规重试。
- Host 重启会重置内存中的续接预算和边界。
DSHub 已核对
- 已验证固定 Git 源和 DSH Bundle 结构。
- 清单声明 Node.js >=22 及可选的 DSH peer 依赖。
- README 记录了 GitHub 安装方式和可配置的恢复行为。
DSHub 未核对
- 未实际执行安装或运行时行为验证。
- 提供的证据中未找到 npm registry 包版本。
- 未声明兼容的 DSH Harness 版本范围。
固定版本安装
安装 dsh-resume-turn
这个Plugin Bundle没有 DSH Plugin 安装操作,请根据源码文档使用真实交付方式。
维护者原文
项目 README
dsh-resume-turn
DSH plugin: resume an interrupted reply from its partial output instead of restarting from scratch.
简体中文 · Repository · Issues · MIT
When a model request fails mid-stream on a slow / flaky endpoint (e.g. the AMD
DeepSeek endpoint — slow inference, frequent disconnects, TIMEOUT /
TRANSPORT / SERVER / RATE_LIMIT), the default dsh-llm-retry rebuilds
the same request and re-runs it from zero: everything that had already
streamed (including a long thinking chain) is thrown away, and a multi-minute
attempt can be repeated several times before giving up.
dsh-resume-turn changes that: at the failure point it collects the partial
output that already streamed (visible text + reasoning chunks) from the
session event log, injects a visible "auto-resumed" steering message that
quotes that partial output and instructs the model to continue from where it
stopped, and takes over recovery with { kind: 'retry' } — so the next
request starts from the interruption point, not from zero.
How it works
agent/request-error (waterfall)
├─ user cancelled? → delegate (never auto-resume over a user stop)
├─ code not transient? → delegate
├─ no partial output? → delegate (nothing to resume; default retry is right)
├─ mid tool-call? → delegate (restart is safer for tool arguments)
├─ resume budget spent (default 3 / turn)? → delegate
└─ otherwise
├─ collect current-attempt chunks (assistant/chunk events after the
│ last attempt boundary) → partial text + reasoning
├─ cancellable backoff (2s, doubling, cap 30s)
├─ agent.steer(resume message) # visible "auto-resumed" row; carries
│ # the partial output + "continue" instruction
└─ return { kind: 'retry' } # retry rebuilds the request from the
# surface, which now includes the resume message
Install (one command)
# from GitHub
npx @deepseek-ai/dsh plugin --profile web add github:Harris-Logic/dsh-resume-turn
# or from a local checkout
npx @deepseek-ai/dsh plugin --profile web add /absolute/path/to/dsh-resume-turn
Restart the profile (or the web host) to activate. The package declares
dsh.bundle.patch, so the installer appends it to dsh.profile.bundles and its
cordis.patch.yml plugin row is applied automatically — no manual file
edits. @deepseek-ai/* modules come from the host (the very schemastery /
dsh-llm instances DSH itself runs on): they are declared as optional peers and
are never installed separately.
Config
The plugin has no required config. Optional keys (in the profile's
cordis.patch.yml row config, or as bundle config):
| key | default | meaning |
|---|---|---|
maxResumesPerTurn |
3 |
max auto-resumes per turn; beyond that, default retry takes over |
resumeCodes |
["TIMEOUT","TRANSPORT","SERVER","RATE_LIMIT"] |
failure codes eligible for resume |
initialDelayMs |
2000 |
backoff before the first resume (doubles per attempt, cap 30s) |
maxPartialChars |
12000 |
max characters of partial output quoted into the resume message |
Interaction with dsh-llm-retry
- On providers whose
retryPolicyismode: always(recommended for flaky endpoints; see the A1 config notes),llm-retryconsults downstream recovery first — this plugin gets the first refusal. Returning{ kind: 'retry' }short-circuits the chain; returningundefinedletsllm-retryschedule its own backoff. - On
mode: normalproviders this plugin is only consulted if it is ordered beforellm-retryin the waterfall; otherwise the default restart-based retry applies unchanged.
Limitations
- Resume quotes the partial output into context; the continued answer may rephrase a boundary sentence (mitigated by the "don't repeat" instruction).
- If the endpoint fails again right after a resume, attempts count against the per-turn budget; after the budget is spent the default retry takes over.
- A host restart resets in-memory resume budgets/boundaries (no custom session events are appended, so stored logs stay fully readable).
License
MIT
有意识地管理
安装与管理
前置条件与目标 Profile
目标: Web Profile
交付方式: Git Bundle — Harris-Logic/dsh-resume-turn#c31eae726fe744871d97605a890c41b86d0dbcfc。
验证、更新与移除
显示生命周期命令
dsh plugin --profile web list兼容性与访问范围
Requires Node.js >=22 and DSH host peer modules.: Not declared in supplied evidence。
风险事实
证据与编辑审查Manifest、Bundle patch、分发与新鲜度
不可变证据
审查状态与源码活动
请使用固定提交的 GitHub Bundle 路径;启用前应评估上下文敏感性,因为部分模型输出会被写入后续请求上下文。
AI 审查于 2026/9/10 UTC 14:29。GitHub 事实核对日期: 2026/9/10 UTC 14:29。
自当前证据基线以来,没有记录到重要源码变化。