概览
@jochenyang/dsh-rewind-plugin
Message recall for DSH: cut the conversation back to before a chosen user message so it leaves the model's context, hide it in the transcript, and put its original text back in the composer. Works through the kernel's own surface-replacement mechanism, so nothing is deleted from the session log.
README / ZH
插件文档
目录摘要
Message recall for DSH: cut the conversation back to before a chosen user message so it leaves the model's context, hide it in the transcript, and put its original text back in the composer. Works through the kernel's own surface-replacement mechanism, so nothing is deleted from the session log.
dsh.pub 核对固定版本的组合包契约、运行时事实与分发语义;完整 README 请查看源仓库。
在 GitHub 阅读完整 READMELIMITATIONS
已知限制
- 由本插件观察不到其写入的工具改动的文件——命令行命令、模型跑的脚本、渲染器——由工作区快照负责, 而不是那两条写入瀑布。快照是有上限的(文件数、总字节、单文件字节、截止时间,以及工具调用的 abort signal),所以特别大的目录树、读不了的文件、符号链接或超时的遍历都可能留下没覆盖到的路径。每次撤回 都会报告覆盖度——`full`、`partial` 或 `none`——连同原因和涉及的写入工具,缺口是看得见的,而不是静默的。 - 依赖、版本控制与缓存目录(`node_modules`、`.git` 等)故意不在覆盖范围内,所以跑过 `npm install` 的 撤回不会报告依赖树;而 `dist/` 这类构建产物是会被遍历的。 - `size` + `mtime` 都没变就当作没变。一个把旧 mtime 恢复回来、大小又刚好相同的写入者会被漏掉——这是 所有同步工具都要做的取舍。 - 占位符是一条内容为空的 `user/message`。DeepSeek 的请求构造会丢掉空的用户消息,所以它在那边不产生 面向模型的回合;换成不丢空用户内容的 provider,一次撤回会多出一条空的用户消息。
