flow2dream/dsh-msg-rewind1

@flow2dream/dsh-msg-rewind

DSH Web 对话回退插件,支持 /undo 回退一轮、/rewind 弹窗回退或点击消息气泡图标回退。

AI 分析

核心用途是灵活控制对话历史。适合在模型输出不符合预期时,需要快速将对话上下文和状态回滚到指定历史轮次的用户。

套件
@flow2dream/dsh-msg-rewind
版本
0.1.1
最近更新
2026年8月18日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:flow2dream/dsh-msg-rewind

Usage

In any conversation:

  • Type /undo — the chat rolls back one turn.
  • Type /rewind — a dialog opens with every user message; the most recent one is preselected. Arrow keys navigate, Enter rewinds.
  • Hover a user message bubble — a small undo icon appears next to the copy button; click it to rewind to that message.

The rewind target is the real user message (system injections such as runtime-context and skill-catalog snapshots are never treated as user turns).

使用方法

在任意对话中:

  • 输入 /undo — 对话回退一轮。
  • 输入 /rewind — 弹出对话框,列出所有用户消息,默认选中最近一条;方向键导航,回车回退。
  • 悬浮用户消息气泡 — 复制按钮旁会出现一个小撤销图标;点击即可回退到该条消息。

回退目标始终是真实用户消息(系统注入内容,如运行时上下文、技能目录快照,绝不会被当作用户轮次)。