Skip to main content

How to use dsh-message-edit

Adds replayable message editing, regeneration, retry, and version branch navigation for DSH sessions, with immutable history that supports rollback.

This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.

This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.

Quick start

dsh-message-edit

— source: plugin_wiki.wiki_content

Install & verify

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

Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.

— source: plugins.install

Key points

  • 编辑消息:可编辑已落定的用户文本、assistant.reasoning 思考块与 assistant.response 回复文本。
  • 重生成:从最后一条已落定助手回复所属回合之前分支,使用原用户输入重新生成。
  • 重试任意回合:在 Timeline 中选择任意历史回合重新执行。
    • truncate(默认):只重新执行目标输入,删除该点之后的旧后续。
    • preserve:保留后续用户输入,并在新分支中依次重新执行;助手输出与工具链全部重新生成。

— source: plugin_wiki.readme_en (fallback readme_raw)

FAQ

Do edit, regenerate, and retry operations rewrite the original session?

No. The plugin never rewrites Session events in-place. The original session is completely preserved as an immutable append-only log, and each operation creates a new session version branched from before the target turn.

What's the difference between truncate and preserve cascade strategies?

Truncate only re-executes the target input in the new branched version and discards the old subsequent content; Preserve also carries over the unexecuted user inputs after the target into the new branch, re-running the subsequent turn toolchain in order.

Do undo and redo actually delete events?

No. Each operation appends an effect/inverse pair event. Undo merely switches along the inverse chain to an older version that still exists; the branch that was switched away remains in the version tree and can be switched back to.

What content can be edited?

Only committed text blocks are supported - user message body, assistant thinking block, assistant response body; other content blocks like images, tool calls, and attachments are not editable.

Does editing a message affect workspace files or products?

No. The plugin explicitly only manipulates session events and derived Agents, and does not联动 to restore or modify workspace files, or the external effects and existing products of commands.

Where is the Timeline tab positioned?

Registered in the conversation.view slot of the session view, with order 15, located between Trajectory (10) and Prompt Studio (20).

— source: plugin_wiki.faq_json

Compatibility

  • DSH: 0.1.0-rc.6+
  • Node: 未声明
  • Platforms: 跨平台

— source: plugin_wiki.compatibility_json

Pitfalls

Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.

— source: general rule

How to use dsh-message-edit