Mongfayi/dsh-recall
用于 DSH Web 界面的消息撤回(撤回)插件:每个用户消息上都有一个撤销按钮,可持久地移除该轮及之后的所有内容,而不会恢复代码更改。
Project Overview项目介绍
dsh-recall is a DSH plugin that removes a user message and everything that follows it from both the conversation UI and the model's visible context, while never rolling back code or file changes. It works by appending a persistent tombstone event that survives restarts, and supports restoring the recalled message's text and images into the input box for editing and resending. Use it when the session is idle to undo an entire turn of Q&A. Note: the recall button is disabled while an agent is running, so the current turn must be stopped first.
dsh-recall 是一款 DSH 撤回插件,可将指定消息及其后续全部对话从界面与模型上下文中移除,但绝不回退代码或文件改动。它通过追加一条持久墓碑事件实现,重启后依然生效,并支持将撤回的用户消息文本与图片整体恢复到输入框以便修改重发。适用于会话空闲时需要撤销某一整轮提问与回复的场景。注意:智能体运行中按钮会被禁用,必须先停止当前回合。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-recall(Mongfayi/dsh-recall)
仓库:https://github.com/Mongfayi/dsh-recall
本站详情页:https://www.yhbd.top/plugins/mongfayi-dsh-recall/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-08-29 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:Mongfayi/dsh-recall
把 Mongfayi/dsh-recall 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-recall
(作者有余额了就继续更新)
对话撤回(recall)插件:把一条消息及其之后的所有内容从对话中移除——界面不再显示、模型不再可见——但绝不回退任何代码/文件改动。撤回通过追加日志(append-only)中的一条持久墓碑事件实现,重启后依然生效。
功能特性
- 整轮撤回:点击用户消息旁的撤销按钮(复制键左侧),撤回该轮对话及其后的全部内容——你的提问与智能体的回复一并移除;长对话中的子智能体指令、压缩、重试、工作流等也都会被一并撤回。
- 恢复编辑:撤回后,被撤回用户消息的文本与图片整体恢复到输入框,可修改后重新发送(与 opencode 的撤回行为一致)。
- 不破坏界面:撤回按钮与框架的复制按钮同一行、互不遮挡;消息气泡、复制键、引用标签、图片画廊全部保持框架原样;含图片的消息始终正常显示图片。
- 持久且可追溯:撤回记录是一条持久墓碑事件,随会话日志 flush 持久化,重启后依然生效;日志记录一个不删。
使用
- 会话空闲时,点击用户消息旁的撤销按钮(复制键左侧);
- 确认弹窗后,该轮对话及其后的全部内容被撤回;
- 撤回位置显示「已撤回的消息」提示;
- 被撤回消息的文本与图片恢复到输入框,可修改后重新发送。
智能体运行中撤销按钮会禁用(先停止当前回合再撤回)。
工作原理
宿主端(lib/index.js)
提供 POST /recall 路由({sessionId, messageId} 或 {sessionId, boundary}),完全基于既有会话协议完成撤回(框架核心没有 Session.recall):
- 校验边界:边界必须是当前 surface 上的活跃消息节点(已撤回或被遮蔽 →
recall-rejected); - 追加墓碑:追加一条持久墓碑——空内容的
assistant/message,surfaceOp为{op:'replace', start: boundary, end}且sourceEventSeqs覆盖全部被遮蔽节点。空内容 assistant 消息不派生任何消息,模型可见历史收缩到 boundary 之前; - 标记与持久化:
data.recall = {boundary, end}标记墓碑(客户端提示节点),随常规 flush 持久化。
错误码:session-not-found / subagent-owned / agent-busy / message-not-found / recall-rejected。
浏览器端(lib/client.js)
- 撤回按钮:以
priority: -1覆盖conversation.chat.node的userkeyed 渲染器。覆盖项委托给框架自己的用户渲染器(从席位注册中解析原组件;框架渲染器是react.memo对象而非普通函数,二者都接受),气泡、复制按键、引用标签与图片画廊全部保持框架原样。撤销按钮定位在框架操作行同一行、复制按键左侧——悬停时钟被抑制使操作行只剩复制键,right:38px即复制键 28px + 10px 行间距,绝无遮挡。 - 图片渲染:始终经框架的图片槽
renderMessageImages渲染(会话授权,标签/灯箱框架原样),不依赖插件自带的画廊加载器——原实现里loadImage并不在渲染器 props 中,必然加载失败导致图片不可见。 - 整轮隐藏:被撤回区间(boundary..end,含端点)内的每一种对话节点都在装配期被隐藏。框架的 slot core 禁止被遮蔽的条目重新声明已被框架条目声明的子槽位,因此不能为每种节点套一个渲染器过滤器;改为在
conversationEvents上统一包装每个框架对话定义的buildViewNode:调用原构建器后,只要该行的锚点 seq(anchorSeq/data.seq/data.finalNode.seq/data.closing.finalNode.seq)落在已撤回区间内就返回null,其余行与框架输出完全一致。这覆盖 steering / context / assistant-step / command / manual-compaction / compaction / model-retry / turn-error / turn-max-tokens / turn-tail / unknown / command-input / tool-call / workflow-run 等全部节点种类。 - 「已撤回的消息」提示:
recall定义匹配墓碑事件(assistant/message+data.recall)注册提示节点。 - 实时更新:墓碑到达实时会话后,通过重新注册本插件的
recall定义触发一次会话装配重建,被撤回行立即消失(无需刷新页面)。 - 恢复输入框:文本经
conversation.input.for(scope).setDraft()写回;图片经会话远程sessions.binding(sessionId).session.readAttachment()取回字节 →conversation.createDraftImages()注册为草稿图片,addImages()挂到图片轨道。被撤回附件仍保留在 append-only 日志中,恢复有真实数据源;单张失败不影响其余恢复,也绝不回滚已完成的撤回。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
sandbaseai/sandbase-harness
PerryLink/dsh-memento
WeirdSky924/agent-handoff-skill