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

@dsh-cc/command-resume

列出最近的会话以便恢复 提供 /resume 命令,方便用户快速检索并选择最近的会话进行恢复。

套件
@dsh-cc/command-resume
相容性
待驗證
Harness 依賴範圍
>=0.2.0-rc.2
Cordis 依賴範圍
>=0.2.0-rc.2
版本
0.9.1-rc.1
授權
Apache-2.0
最近更新
2026年10月13日

安裝

此插件尚未提供可驗證的 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.