dsh-cc/dsh-cc--packages-interaction-command-resume ↗★ 1

@dsh-cc/command-resume

面向用户的斜杠命令,列出最近会话以供恢复。 适合挑选并恢复历史会话的用户;依赖可选的sessionQuery服务。

包名
@dsh-cc/command-resume
兼容性
待验证
Harness 依赖范围
>=0.1.5-rc.1
Cordis 依赖范围
>=0.1.5-rc.1
版本
0.7.1
许可证
Apache-2.0
最近更新
2026年9月16日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

@dsh-cc/command-resume

English | 中文

Human-facing /resume command: list the recent sessions (id, title, cwd, availability, and start time) so a user can pick one to resume. It reads the optional sessionQuery service. The plugin registers one global command through ctx.commands.

Command contract

InputResult
/resumeList recent sessions newest-first: session id, latest folded title (when the log has one), cwd (when recorded), optional parent, availability (live/persisted), and creation time. Ends with the host-owned resume pointer.

Only fields the sessionQuery API actually exposes are rendered; a field with no source is omitted. Empty results render a friendly placeholder. The command reads the optional sessionQuery seam — a composition without it reports the missing seam.

Composition

The producer injects commands. A custom app mounts the session-query backend (e.g. @deepseek-ai/dsh-session-query-sqlite) plus this plugin:

- id: session-query
  name: '@deepseek-ai/dsh-session-query-sqlite'
- id: command-resume
  name: '@dsh-cc/command-resume'

The sessionQuery seam is discovered via ctx at run time; it is not injected, so the command loads even without a query backend (and then reports the missing seam).

Model Experience

The slash input and the direct output are absent from model requests and consume no model tokens. Outputs are pure reads of the session corpus.

Known Limitations and Deferred Work

  • Session switching is host-owned — the command only lists; to switch the user restarts with dsh --resume . It cannot switch the live process.
  • No lastActive field — the sessionQuery API exposes creation time and availability, not a last-active timestamp, so no such line is rendered.