dsh-plugin-message-edit
Manifest validMessage and attachment editing with save-only updates, forked regeneration, and a version timeline for DSH desktop.
dsh-plugin-message-edit
让 DeepSeek Harness 桌面端的历史消息像输入框一样可以修改,支持正文、附件、文件引用和模型设置。
作用
- 用户消息「保存」:在原会话修改正文和附件,保留已有回复与后续对话,不再次请求模型。
- 用户消息「保存并发送」:携带修改后的内容创建新分支,重新请求模型;原会话可以切回。
- 附件和引用:通过「+」、粘贴或拖入添加文件,支持移除和替换;图片点击放大,普通文件和蓝色文件引用使用系统默认程序打开。
- 编辑与重试:编辑助手回复或思考、重生成最后回复、重试历史回合;通过 Timeline 查看记录、切换版本。
- 完整编辑框:支持
@文件与会话引用、权限、模型和推理等级选择,以及取消编辑的二次确认。
0.3.2 适配 DSH 0.2.1-rc.2,修复首回合助手编辑后的日志结构问题,并隔离不可读历史分支,详见 更新记录。保留已完成桌面验证的 0.2.0-rc.2、0.2.1-rc.1;rc.2 已通过自动检查、本地原生读取及浏览器演示验证,完整桌面回归记录待补齐。首次打开会话时请等待历史消息加载完成。
安装新版不会自动修复已损坏的历史文件。遇到历史加载失败时请保留原件,先备份再单独恢复。

截图来自本地示例页面,使用演示内容。
使用方法
安装
使用 GitHub Release 的 0.3.2 预构建安装包:
dsh plugin --profile desktop add -w https://github.com/sh1robana/dsh-plugin-message-edit/releases/download/v0.3.2/dsh-plugin-message-edit-0.3.2.tgz
Windows 桌面端没有全局 dsh 命令时,使用安装目录里的 CLI,按实际安装位置修改路径:
& 'D:\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd' plugin --profile desktop add -w https://github.com/sh1robana/dsh-plugin-message-edit/releases/download/v0.3.2/dsh-plugin-message-edit-0.3.2.tgz
也可通过 npm 安装同一版本:
dsh plugin --profile desktop add -w @sh1robana/dsh-plugin-message-edit@0.3.2
安装后保存工作,彻底退出 DSH,再重新启动。 如果已安装旧的 dsh-message-edit 或其他消息编辑插件,请先停用,避免重复按钮和接口冲突。迁移本项目旧版时,可先执行 dsh plugin --profile desktop remove -w dsh-message-edit。
编辑
- 打开已有会话,点击消息操作栏的编辑按钮,或进入 Timeline 选择消息。
- 修改正文;点击 「+」 添加文件,也可以直接粘贴、拖入。点击附件的 「×」 移除,点击图片查看大图。
- 需要时修改权限、模型或推理等级,然后选择 「保存」 或 「保存并发送」。
- 点击 「取消」,在「是否确认取消编辑」中选择「是」放弃修改,选择「否」继续编辑。
用户编辑框快捷键:Ctrl+S 仅保存,Enter 保存并发送,Shift+Enter 换行;输入法组字时不会提交。
助手消息编辑会创建新版本。版本切换不会撤销已经执行的文件修改或命令;被压缩移出模型上下文的用户消息无法原地保存,可使用「保存并发送」。
贡献与致谢
- shirobana:需求设计、桌面验收与项目维护。
- Codex(OpenAI AI 编程助手):协作完成兼容适配、功能实现、测试和文档。
基于 Moeblack/dsh-message-edit 继续开发;感谢 DDDMUC/dsh-edit-turn 的设计参考、DeepSeek Harness 的插件接口与构建预设,以及 dsh-market、awesome-dsh-plugin 社区的发布文档。
以 MIT 许可发布。来源与许可见 NOTICE.md 和 LICENSE;开发与发布步骤见 发布指南。
维护源码时先阅读仓库根目录的 CLAUDE.md 和 log/README.md;开发过程记录在 log/ 的日期日志中。
DSH 更新后,可使用仓库内的 dsh-plugin-upgrade Skill 进行插件适配,见 使用方式。
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.3.0 | — | — |
Comments
Loading…
Similar plugins
by Moeblack
DSH 插件:分支式消息编辑、重掷、重试与版本时间线 | DSH plugin: branch-based message editing, reroll, retry, version timeline
★ 53
↓ 625/wk
TypeScript
Aug 16, 2026
dsh plugin --profile web add dsh-message-editby SpookySandwich
DSH 消息编辑插件:编辑已发送的消息并从该处分叉对话,气泡下方带版本计数与树状视图。Edit a sent message and branch from that point — version counter, tree view, placement presets.
★ 22
↓ 686/wk
NOASSERTION
JavaScript
Oct 5, 2026
dsh plugin --profile web add dsh-plugin-message-editby mbj733
DeepSeek Harness (DSH) plugin: edit sent messages and resend (stop an in-flight reply, edit, resend), plus branch-based edit / reroll / retry and a version timeline.
★ 4
↓ 34/wk
MIT
TypeScript
Sep 9, 2026
dsh plugin --profile web add dsh-edit-resendby lxl8182
DSH Web 用户消息编辑重发插件:改掉某一轮提问重发,该轮之后的内容丢弃,原会话归档(新会话继承逐字节相同前缀以保住 prompt 缓存)。
★ 0
MIT
JavaScript
Sep 30, 2026
dsh plugin --profile web add dsh-message-editby suzuran520yyz
DSH Web GUI 插件,用于对会话消息进行编辑、重试、高级重试和删除等功能的实现
★ 0
MIT
JavaScript
Sep 3, 2026
dsh plugin --profile web add dsh-more-message-actionsby TwilightSpirit
在消息气泡上加修改按钮,通过 DSH surface replace 机制改写模型上下文,fork 继承、支持 markdown、可审计
★ 0
↓ 539/wk
MIT
JavaScript
Aug 22, 2026
dsh plugin --profile web add dsh-message-edit