dshbase

插件目录 / Developer / dsh-resume

dsh-resume

已验证 · 实测可装 L3n3L

✓ 持续维护 基于 2 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

7Stars
0Forks
0未关闭 issue
—语言
2026-08-24最近推送
跨平台平台

功能简介

AI 写简历容易,但写完总会遇到模板难看、排版溢出、页面留白、改一处全局变形等问题。dsh-resume 专注解决“内容生成后的视觉复核”:让 AI 和用户一起把简历调到真正适合投递的刚好一页。AI can write a resume, but the result often looks unbalanced, overflows the page, leaves large blank areas, or breaks after a small edit. dsh-resume focuses on visual review after generation, helping AI and users refine the resume into a polished.

我们的评价

尚无短证据报告

这里还没有可核对的逐级实测记录。Star 数、目录 test 字段、web-only 标记,以及插件是否需要外部账号或服务,都不会在这里被写成通过或失败。目录徽章仍按 catalog 原样显示。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-resume

English | 中文

Status: Feature Plugin with Compatibility Patch. Tested only with DeepSeek Harness 0.1.0-rc.6.

dsh-resume adds two continuity behaviors to the DSH Web profile: an interrupted turn can continue from an empty submit without adding a visible "continue" message, and sessions that were still running when DSH stopped can be resumed after the next boot.

Problem

Upstream DSH can resume stored sessions and repair torn logs, but it does not treat an empty composer submission as continuation and does not automatically restart the exact set of sessions and subagents that were active at process shutdown.

Behavior

  • Folds received partial text and reasoning into session history when a turn is interrupted.
  • Enables empty-submit continuation for an interrupted conversation.
  • Tracks active top-level sessions and subagents in ~/.dsh/resume-state.json.
  • Restores only entries recorded as running at shutdown; completed or user-aborted turns are not restored.
  • Consumes the state file per session: each successfully resumed session is removed from the persisted set immediately (atomic write), so a crash or kill during restoration never loses the remaining sessions — the next boot continues with what is left. Failed resumes stay recorded and are retried on the next boot.
  • Automatically retries recorded subagents at startup; failed entries remain available through resume_interrupted_subagents.
  • Writes recovery diagnostics to ~/.dsh/resume-state.log.

Non-goals

This package does not import sessions from other agents, rewind arbitrary turns, migrate workspaces, guarantee that a remote provider can reproduce an interrupted stream byte-for-byte, or repair every upstream session-log race.

Mechanism

The host plugin listens to agent lifecycle events and uses the official agents.resume service. Compatibility patches add partial-turn folding and empty-submit handling to:

  • @deepseek-ai/dsh-agent-loop@0.1.0-rc.6
  • @deepseek-ai/dsh-session@0.1.0-rc.6
  • @deepseek-ai/dsh-client-ui-conversation@0.1.0-rc.6

Every target hunk is idempotent and has an explicit reverse operation. Version policy is adaptive by default: a copy whose installed version differs from 0.1.0-rc.6 is still patched when every hunk anchor matches uniquely (recorded as an adaptive match), and skipped with a reason when anchors drifted. The programmatic strict option restores the old exact-version-only apply behavior. One drifted copy never blocks the others, and patch application never throws during module loading, so an upstream upgrade cannot brick the agent loop. Restore remains strictly version-guarded in every mode.

Compatibility

Tested with DeepSeek Harness 0.1.0-rc.6, Node.js ^22.19.0 || >=24, and pnpm >=10. After an upstream upgrade, run dsh-resume-restore and verify:anchors once to confirm every hunk is either applied or intentionally skipped.

Install

dsh plugin --profile web add "github:xiaohj233/dsh-resume#v0.2.1"

Restart the Web profile. Startup applies the guarded compatibility patches before enabling resume behavior.

Configuration

Override the dsh-resume row in a later profile patch when needed:

- id: dsh-resume
  config:
    enabled: true
    restoreDelayMs: 2000

enabled controls startup restoration. Runtime tracking remains active so a later enabled boot can restore the recorded set.

Restore and uninstall

Restore official package files before removing the plugin:

pnpm --dir "$DSH_HOME/profiles/web" exec dsh-resume-restore
dsh plugin --profile web remove dsh-resume

When $DSH_HOME is unset the profile lives under the home directory (POSIX: ~/.dsh/profiles/web; Windows PowerShell: %USERPROFILE%\.dsh\profiles\web); on Windows pass the resolved path to pnpm --dir instead of ~. Normal Cordis shutdown does not reverse patches; shutdown is when continuity state must be preserved.

After uninstall, resume-state.json and resume-state.log are no longer read. Delete them manually if their session identifiers and diagnostics are no longer needed.

Safety and privacy

The state and log files contain session/subagent identifiers, model and recovery diagnostics, and failure messages. They do not intentionally store credential values, but they should be treated as private runtime data. Automatic restoration can issue new model requests and incur provider usage.

Tests

npm test
npm run check
npm pack --dry-run

The test suite covers exact version refusal, unique-anchor refusal, whole-run atomicity, idempotence, byte-exact patch/restore round trips, normal-shutdown behavior, and restore CLI failures.

Limitations and upstream status

Upstream already provides resumeSessionId, interrupted-turn closers, checkpoints, and session persistence. This package builds on those mechanisms and patches only the missing empty-continuation and shutdown-set restoration behavior. DSH Discussion #420 documents an upstream resume/closer sequence race that this package does not claim to eliminate.

License

MIT. Patch targets are MIT-licensed; see THIRD_PARTY_NOTICES.md.

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-resume」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:L3n3L/dsh-resume

Headless(CLI)profile:

dsh plugin --profile headless add github:L3n3L/dsh-resume

实测报告

尚无短证据报告

这里还没有可核对的逐级实测记录。Star 数、目录 test 字段、web-only 标记,以及插件是否需要外部账号或服务,都不会在这里被写成通过或失败。目录徽章仍按 catalog 原样显示。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 26846 个插件 →