
Research
/Security News
OpenAPI React Query Codegen Compromised in Mini Shai-Hulud npm Supply Chain Attack
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.
dsh-delete-message
Advanced tools
Per-message delete for DeepSeek Harness — a trash icon beside the copy button on every chat message that removes that message from the derived model context (and the visible transcript) via the official surface-replace contract
简体中文 | English
DeepSeek Harness 消息级删除插件,用于避免用户误发或错误的消息污染模型上下文。在每条消息的操作区提供删除按钮:确认后,该消息经由宿主官方 surface-replace 契约从模型上下文移除(助手回复连同其思考、工具调用与注入上下文一并删除),并从可见转录中隐藏。原始日志字节不做任何改写,随时可恢复。
conversation.chat.assistant-actions 槽位;用户输入、机器注入的上下文行、工具调用卡片、思考(Think)卡片、模型重试提示与回合错误横幅经 DOM 增强(宿主无对应侧操作条扩展点)。chrome 行(非用户/助手操作条)的删除按钮默认隐藏、悬停该消息时显示并允许点击。Tooltip 及 Modal+Button 确认弹窗,明暗主题自动适配。surfaceOp: { op: 'replace' } 占位节点(与宿主 /compact 同一机制),被遮蔽的消息不再进入 deriveMessages()。/status 预检治愈本浏览器未知的历史已删行。assistant/message + 配对的 tool/result),同窗口内其他步骤原样保留;弹窗标题与 tooltip 明确标注范围("删除这一步" vs "删除整个回复尝试")。/status 预检:不可删的目标图标置灰并直接给出本地化原因,不做注定失败的请求;已被删除的行静默治愈隐藏;预检不可达时保持中性可点击(服务端始终权威)。点击不同位置的垃圾桶,删除范围、弹窗标题和 Tooltip 提示各不相同:
| 点击目标 | 删除范围 | 弹窗标题 | Tooltip |
|---|---|---|---|
| Think 卡 🗑️ | 仅该步骤 | 删除这一步? | 删除这一步 |
| 工具调用卡 🗑️ | 仅该步骤(所属 assistant/msg + tool/results) | 删除这一步? | 删除这一步 |
| 注入上下文行 🗑️ | 整窗口 | 删除整个回复尝试? | 删除整个回复尝试 |
| 重试行 / 错误横幅 🗑️ | 整窗口 | 删除整个回复尝试? | 删除整个回复尝试 |
| 用户消息 🗑️ | 仅该消息本身 | 删除这条消息? | 删除 |
| 助手槽位(复制按钮右侧)🗑️ | 整窗口(回复 + 思考 + 工具调用 + 注入上下文) | 删除这条消息? | 删除 |
步骤级删除适用于多步回合:只移除目标步骤的
assistant/message及配对的tool/result,同窗口内其他步骤原样保留。整窗口清理适用于失败/中断回合的一次性清扫。



截图文件存放于 docs/screenshots/,各图内容与拍摄要求见该目录说明。
user/message 与 assistant/message 表面节点(真实用户输入只做单节点替换;助手消息、机器注入行与非表面 chrome 锚点如 tool/call、llm/retry 按用户输入窗口整单元计划);携带工具调用的消息不可单独删除、已被遮蔽的消息与进行中的回合一律拒绝,并返回机器原因码(UI 本地化展示)。dsh plugin --profile web add github:viplocco/dsh-delete-message#v0.2.1
安装后需完全重启 DSH Web 进程(宿主侧插件树仅在启动时读取);客户端 bundle 由宿主按请求动态 serve,更新后硬刷新即生效。
pnpm test # node --test
架构、宿主契约与设计取舍详见 docs/DESIGN.md。联系方式:viplocco@qq.com
MIT
FAQs
Per-message delete for DeepSeek Harness — a trash icon beside the copy button on every chat message that removes that message from the derived model context (and the visible transcript) via the official surface-replace contract
We found that dsh-delete-message demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Research
/Security News
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.

Security News
Socket joins more than 100 technology, cybersecurity, and financial organizations calling for a global surge in cyber defense.

Product
Enterprise security teams can now detect malware, credential theft, suspicious network activity, and risky updates across Microsoft Edge extensions.