DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-edit-resend

m

dsh-edit-resend

Manifest valid★ 4

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.

UI (client)hasBundlePatch

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 包。

Compatibility

DSH 0.2.1-rc.4: failedDSH 0.2.0-rc.1: failedDSH 0.2.0-rc.2: failed

Versions

Latest versionPublishedSize
0.1.0——

Comments

Loading…

Similar plugins

dsh-redo

by Imzl-zl

DSH 插件:编辑或重试已发送的消息并原地重新生成。Edit or retry sent messages and regenerate in place for DeepSeek Harness.

Sessions & MessagesManifest valid

★ 1

MIT

TypeScript

Oct 26, 2026

dsh plugin --profile web add dsh-redo

by huangmiuXyz

Right-click any user message to edit it and retry from that point — a client-side plugin for DeepSeek Harness (DSH). · 右键编辑任意一条用户消息并从那里重试。

Manifest valid

★ 0

MIT

JavaScript

Oct 21, 2026

dsh plugin --profile web add dsh-edit-retry

by Moeblack

DSH 插件:分支式消息编辑、重掷、重试与版本时间线 | DSH plugin: branch-based message editing, reroll, retry, version timeline

Sessions & MessagesManifest valid

★ 42

↓ 633/wk

TypeScript

Aug 16, 2026

dsh plugin --profile web add dsh-message-edit

by hg1048596-pixel

DeepSeek Harness (DSH) 插件:在模型读取前撤回已发送的文字消息,支持单条与全部撤回。A DeepSeek Harness plugin that recalls sent-but-unread text messages before the model reads them — one-by-one or all at once.

UI & ExperienceManifest valid

★ 126

MIT

JavaScript

Oct 3, 2026

dsh plugin --profile web add dsh-recall-unread

by moton16

Message edit / regenerate plugin for DeepSeek Harness Web — Cordis host plugin (/api/msg-edit/*) + dsh.client UI plugin (assistant action strip). Declarative bundle, no install scripts.

UI & ExperienceManifest valid

★ 4

MIT

JavaScript

Aug 15, 2026

dsh plugin --profile web add @moton16/dsh-msg-edit

by XSJUSTC

DSH (DeepSeek Harness) conversation rewind plugin - rewind to any user message, interrupt a running turn, hide the tail from chat view and model context, cancel freely before sending.

UI & ExperienceManifest valid

★ 11

MIT

JavaScript

Sep 22, 2026

dsh plugin --profile web add @xsj/dsh-rewind