mill413/dsh-session-resume--packages-session-resume ↗★ 0
@mill413/dsh-session-resume
dsh-session-resume 插件的主机端包,支持用户一键触发并继续因崩溃而中断的会话回合。
AI 分析
核心用途是恢复异常中断的任务。适合经常运行长耗时任务、需要应对程序崩溃并快速断点续传的进阶用户;需配合 UI 包使用。
安裝
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mill413/dsh-session-resume#7871515d3e3b6331988fe8186f91965cdc42d4b2&path:packages/session-resume說明文件
閱讀完整 README ↗@mill413/dsh-session-resume
Host package for dsh-session-resume, a DeepSeek Harness plugin that lets you continue a crash-interrupted task with one click. Requires DSH 0.1.2-alpha.5 and the companion Web UI package.
Install
After publication, install matching versions of both packages into the same profile, using that installation’s DSH CLI:
dsh plugin --profile web add @mill413/dsh-session-resume@0.1.1
dsh plugin --profile web add @mill413/dsh-client-ui-session-resume@0.1.1
For local installation, build the repository and replace the package names with absolute paths to packages/session-resume and packages/ui-session-resume. Restart DSH Web and refresh the page after installation. Do not manually edit the profile's bundle patch.
Behavior
- Derives the
sessionResumeprojection from the host's repaired session log. Onlyturn/endevents withreason.kind === 'interrupted'qualify; the nextturn/startclears the state. - Exposes the
resumeremote action, which checks the live session again before sending anything. - Prepends tool-safety guidance to
next-turn, then usesagent.steer()to deliver a short continuation lead ahead of queued turns. - Sends two plugin-origin
noticemessages, recorded in the conversation and visible to the model. It does not impersonate manual input or change the system prompt.
Continuation is user-triggered, with no configuration options. The guidance asks the model to avoid repeating completed steps and to verify external state before retrying non-idempotent operations. It is not an exactly-once execution guarantee, and the plugin does not recover process memory.
Manual cancellation, token limits, ordinary errors, blocked turns, and idle goal work do not trigger this feature.
Development
No Harness source checkout is needed. Use Node.js 24 and pnpm 11.3.0; the SDK development dependencies are pinned npm packages. From the repository root:
pnpm install --frozen-lockfile
npm test
npm run build
See the repository's root README for the full installation and troubleshooting guide.
License
MIT