Plugin directory / Developer / dsh-edit-resend
dsh-edit-resend
Unverified mbj733
What it does
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.
Unverified — not yet verified
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. Not yet verified — install and test it yourself.
“Unverified” means our automated CI has not yet installed this plugin. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.
README
dsh-edit-resend
DeepSeek Harness (DSH) 插件:在消息已发送之后原位编辑并重新发送——包括停止正在进行的回复、编辑、重新发送,以及重生成 / 重试任意回合。单对话模式:修改后旧版本自动归档、标题不变,侧边栏始终只保留一个对话。
与上游 dsh-message-edit 的关键区别:本插件的版本元数据存在会话日志之外(DSH_HOME/storages/dsh-edit-resend/versions.json),从不往会话日志写自定义事件类型,因此不会触发宿主重启后的 SessionFormatUnsupportedError,会话始终可恢复。
功能
- 停止并编辑重发:回复进行中,标题栏出现「■ 停止」;你也可以直接点最后一条消息的「编辑」图标——修改后点「重新发送」时,插件会自动停止当前回复、等回复收敛后从该消息重新生成,无需先手动停止。不会产生重复消息,旧版本自动归档。
- 失败可见:编辑框内与标题栏会直接显示失败原因(例如“所选消息不属于已落定回合”),不会再静默无反应。
- 编辑已落定消息:编辑用户文本、助手思考(reasoning)与助手回复(response)。
- 重生成:用原输入重新生成最后一条已落定回复。
- 重试任意回合:在 Timeline 中选任意历史回合重跑。
- 级联策略:
truncate(默认,截断后续)/preserve(保留后续用户输入依次重跑)。 - 单对话模式:每次编辑 / 重生成 / 重试都会归档旧版本并沿用原标题,侧边栏只保留一个对话;「编辑与重发」标签页可查看当前版本与消息。
安装
dsh plugin --profile web add dsh-edit-resend
# 或本地开发(符号链接):
dsh plugin --profile web add -w link:/path/to/dsh-edit-resend
安装后重启 dsh(dsh web)即生效。
构建
npm install
npm run build
生成 index.mjs(Host 插件)与 client.js(Browser 插件)。
架构
- Host 半(
src/host.ts,注入sessions/agents/sessionQuery/workspaceRegistry/webServer):通过ctx.agents.create({ seed, meta })事务缝从目标回合之前分支;parentSession落在会话头建立谱系,版本效果元数据落在插件私有 JSON 存储。 - Client 半(
src/client/*,注入slots/conversation/connection/sessions):注册conversation.view(「编辑与重发」标签页)与conversation.session.header.actions(停止 / 重生成),并用 MutationObserver 把「编辑 / 重试」按钮注入到消息操作行。 - HTTP 接口:
GET /edit-resend?sessionId=(时间线投影)、POST /edit-resend(edit/reroll/retry)。
范围边界
- 不原地改写会话事件;历史 append-only。
- 不联动恢复工作区文件 / 外部命令副作用。
- 不修改 DSH 引擎或官方 UI 包。
Install
Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:
dsh plugin add dshbase-catalog Then say "install dsh-edit-resend for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.
This plugin is GitHub source (not published to npm) — install it straight from the repo:
Web profile:
dsh plugin --profile web add github:mbj733/dsh-edit-resend Headless (CLI) profile:
dsh plugin --profile headless add github:mbj733/dsh-edit-resend Test report
Not yet L3-verified — see failure note below if we already ran it.
2026-08-25 · flagged webonly Note: 验证: web-only;待 L4 web CDP;L4 web CDP runtime-fail on dsh 0.1.0-rc.8. Browse all pending failures →