← 返回列表
D

dsh-turn-delete

v0.1.0 · 0 天前发布

Delete one complete closed turn from a DeepSeek Harness session without deleting the session

deepseek-harnessdshdsh-pluginsessionturn-delete

README

dsh-turn-delete

English | 中文

从 DeepSeek Harness 对话中删除一个完整且已经结束的 Turn(轮次),不删除或替换整个 Session。每个已完成的顶层轮次,其最后一条助手回复旁会出现删除按钮。

安装

从 GitHub 安装:

sh
dsh plugin --profile web add github:hanshenmesen/dsh-turn-delete

从预构建的 GitHub Release 安装:

sh
dsh plugin --profile web add https://github.com/hanshenmesen/dsh-turn-delete/releases/latest/download/dsh-turn-delete.tgz

安装后重启 dsh web。卸载命令:

sh
dsh plugin --profile web remove dsh-turn-delete

行为

  • 删除按钮只出现在普通 Session 已完成的轮次上,Subagent 对话不会显示。

  • 删除前必须确认;Session 正在运行时不能删除。

  • 所选轮次的提问、助手消息与工具记录会从 Session 当前的模型上下文中移除。

  • Session id、标题、工作区关联、后续轮次和原始 append-only 事件日志保持不变。

  • 删除由一个持久的零内容替换事件记录;刷新页面或重启 profile 后仍然生效。

  • 重复提交同一次删除是幂等的。
  • 目标轮次尚未结束,或已与其他历史一起合并进 compaction 替换节点时,插件会拒绝删除,避免只删除模型可见上下文的一部分。

    设计

    Host 端注册 `POS

    查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    dsh-turn-delete
    Repo
    git+https://github.com/hanshenmesen/dsh-turn-delete.git
    Engines
    {"node":">=22.19"}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-conversation"]}}