dshbase

插件目录 / Productivity / dsh-turn-delete

dsh-turn-delete

已验证 · 实测可装 hanshenmesen

✓ 持续维护 基于 9 个官方 DSH 包 纯 TypeScript

查看 GitHub ↗ ← 返回插件目录

109Stars
0Forks
0未关闭 issue
TypeScript语言
2026-08-18最近推送
跨平台平台

功能简介

从DeepSeek Harness对话中删除一个完整的已关闭回合,而不删除会话。

✅
我们的评价
推荐 — 实测可用且热门

从DeepSeek Harness对话中删除一个完整的已关闭回合,而不删除会话。 实测能干净安装、正常启动。109+ stars,社区认可度高,是低风险选择。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-turn-delete

English | 中文

Delete one complete closed turn from a DeepSeek Harness conversation without deleting or replacing the Session. The action appears beside the final assistant response for each completed top-level turn.

Demo

Delete the middle turn after confirmation while keeping the same Session and its later turn. This was recorded through the real DeepSeek model flow on DeepSeek Harness 0.1.0-rc.7.

Delete one turn without deleting the Session

Install

From npm (recommended):

dsh plugin --profile web add dsh-turn-delete

From GitHub:

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

From a prebuilt GitHub Release:

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

Restart dsh web after installation. To remove it:

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

Behavior

  • A trash action appears only on completed ordinary Session turns. Subagent transcripts do not expose it.
  • Deletion requires confirmation and is disabled while the Session is running.
  • The prompt, assistant messages, and tool records for the selected turn are removed from the Session's current model surface.
  • The Session id, title, workspace association, later turns, and original append-only event log remain intact.
  • A durable zero-content replacement event records the deletion. Reloading the page or restarting the profile preserves it.
  • Repeating the same request is idempotent.

The plugin refuses deletion when the target turn is still open or has already been merged into a compaction replacement with other history. This prevents deleting only part of model-visible context.

Design

The Host half registers POST /dsh-turn-delete, claims the target Agent's maintenance lease, validates the complete closed-turn surface span, appends a zero-content replacement, and waits for sessions.flush() before acknowledging success.

The browser half contributes to the public conversation.chat.assistant-actions and conversation.chat.turnTail slots. A Conversation definition projects the durable tombstone onto the target Turn. DeepSeek Harness does not yet expose a public whole-Turn visibility hook, so the tail contribution applies a narrow presentation compatibility layer to the Chat rows between adjacent Turn tails. Model context deletion does not depend on that compatibility layer.

Compatibility

  • DeepSeek Harness 0.1.0-rc.6 and 0.1.0-rc.7
  • Node.js 22.19 or newer
  • Web profile and Web-based desktop shells

DeepSeek Harness is in developer preview. After upgrading Harness, verify the plugin once with a disposable Session containing three short turns and delete the middle one.

Development

npm install
npm run check
dsh plugin --profile web add -w link:/absolute/path/to/dsh-turn-delete

npm run check type-checks and builds both plugin halves, runs the unit/UI tests, and verifies the npm package contents.

Security

Like every DSH plugin, this package runs with the Harness process's permissions. Review the source before installing third-party plugins. The deletion changes future model context but deliberately retains the original append-only events for audit and replay.

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-turn-delete」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

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

Headless(CLI)profile:

dsh plugin --profile headless add github:hanshenmesen/dsh-turn-delete

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Productivity 里更多

浏览全部 7819 个插件 →