dsh-one-click-session-delete

DSH PLUGIN会话与消息

仓库 LINJJ749/dsh-one-click-session-delete

会话与消息 L5 · 运行验证通过 安全审查:低风险 可信度:金 可安装插件
安装这个插件

dsh-one-click-session-delete 是 LINJJ749 维护的 会话与消息 类 DSH 可安装插件, 仓库为 LINJJ749/dsh-one-click-session-delete,许可证 MIT。 下面按「装什么、怎么装、验没验过、跑起来要注意什么」逐项列出。

一句话选型结论

按资料字段整理

dsh-one-click-session-delete 是会话与消息类的 DSH 可安装插件,验证等级 L5 · 运行验证通过,安全审查为低风险,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类会话与消息 收录类型可安装插件 验证等级L5 · 运行验证通过 安全审查低风险
验证等级 L5 L5 · 运行验证通过
GitHub 星标 0 复刻 0 · 未关闭 issue 0
最近更新 2026-10-23 创建于 2026-10-23
README 8.1 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add github:LINJJ749/dsh-one-click-session-delete
  1. 1
    确认版本与运行环境

    仓库没有标注兼容版本与 Node.js 要求,先确认你的 DSH 版本能装,再继续。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名未发布到 npm可用 npm view 查看包信息

能做什么

会话与消息
字段来自项目仓库与公开索引,中文说明由本站标注

适用场景

存储文件读写

上游标签

deepseek-harnessdsh-plugin

验证等级与安全审查

L5 · 运行验证通过
自动化流程结论,不是人工审核
验证等级L5 · 运行验证通过在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度活跃按仓库活跃度与最近更新时间给出
可信度金综合仓库活跃度与验证结果

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 验证等级 L5:安装和运行都在沙盒里跑通过,装完能直接用的概率高。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有声明 Node.js 版本要求,版本不匹配可能装不上。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在会话与消息场景里给 DSH 补能力的人。
  • 想装完就能用、不想自己排依赖的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-one-click-session-delete当前 L5 · 运行验证通过 低风险 0 未标注 有
dsh-desktop L3 · 安装规范通过 低风险 3.0 万 未标注 无
openpets L4 · 沙盒安装通过 低风险 1,274 未标注 有
deeptide L4 · 沙盒安装通过 低风险 1,104 0.1.1-rc.2 有
jingyun-dsh L3 · 安装规范通过 低风险 1,004 未标注 有
study-mate 未做沙盒验证 未标注 856 未标注 无

仓库档案

会话与消息
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方LINJJ749仓库 dsh-one-click-session-delete · 默认分支 main
分类会话与消息desktop
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言未标注仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue0 / 0 / 0收录时的数值,非实时
创建 / 更新2026-10-23 · 2026-10-23最后推送 2026-10-23
本站收录2026-10-30首次进入本站目录的时间

README 全文

8.1 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-one-click-session-delete

中文 | English

A DeepSeek Harness (DSH) plugin that adds one-click permanent Session deletion to the Workspace sidebar, plus a lightweight confirmation dialog.

DSH ships archive-only Session management: the persistence layer has no delete API, and the Session list is a core surface that does not expose permanent removal. This plugin adds that operation through the official extension slots — no DOM injection, no patching of shipped UI.

English

Features

  • Hover button on every Session row: a trash icon at the end of the row's action strip, after the shipped archive and pin buttons.
  • The same action in the Session's ... menu, after the shipped Session-ID row.
  • One lightweight confirmation: shows the Session title, the irreversible warning, and Cancel / Delete buttons; an in-flight state and an inline error message on failure.
  • Live-Session protection: a Session that is open or running is refused (its write handle would otherwise recreate a header-less log after deletion). Switch to another Session first.
  • Derived-Session handling: when the target has derived Sessions (subagents, or forked Sessions that carry parentSession), the first attempt is refused with their count. The confirmation dialog then offers one more explicit step — "Delete all N sessions" — and the subtree is removed children-first. A live descendant refuses the whole operation.
  • Complete, bounded removal:
  • the Session's own log directory under /sessions/----// (every format generation). The canonical log files are renamed to *.deleted- first — the single atomic commit point; a Session without a canonical log is immediately invisible to list/stat/open — then the directory is removed best-effort;
  • the Session's persisted projection-cache record in the session_projcache storage domain, through the domain write chain so memory and disk stay consistent;
  • best-effort workspace bookkeeping: the Session is detached from its Workspace accounting slot and removed from the archive/pin sets.
  • No page reload: the deleted row is removed locally and the Session list is re-aligned with the Host in the background.
  • Bilingual zh/en UI, inheriting the host theme tokens and locale.

Install

# from GitHub (works today)
dsh plugin --profile  add github:LINJJ749/dsh-one-click-session-delete

# or from npm, once published
dsh plugin --profile  add dsh-one-click-session-delete

Replace ` with your profile name (for exampledesktoporweb), andLINJJ749/dsh-one-click-session-deletewith this repository. The package declares thedsh.bundlemanifest, sodsh plugin add` installs and mounts it without any manual patch edit.

Usage

Hover a Session row in the Workspace sidebar and click the trash button, or open the row's ... menu and choose Delete session. Confirm in the dialog. The row disappears; the Session's local records are gone permanently.

To merely hide a Session and keep its records, use the shipped Archive session action instead.

Safety and limits

  • Permanent deletion: no trash, no undo. Archived Sessions can be deleted too; they are removed from the archive set as part of the cleanup.
  • Open/running Sessions are always refused. Deleting the Session you are currently viewing requires switching to another Session first.
  • Attachments are content-addressed and shared across Sessions; the plugin does not delete them.
  • If a deployment enables the persistent SQLite content-search index, this plugin does not touch index files (that index reconciles itself).
  • The plugin resolves the Session root from the live sessionPersistence service, falling back to the launcher-provided home path; nothing is hard-coded.
  • The Host half exposes one same-origin JSON route (POST /session-delete/api/delete) protected by the Host's connection trust fence; the Client half adds slot registrations only.
  • The Host half is not sandboxed by the plugin system: it runs with the Host process's permissions and removes files under the DSH home. Review the code — it only removes the selected Session's own storage paths.

Compatibility

  • DeepSeek Harness 0.2.1-rc.2 (tested). Uses webServer, connection, sessionPersistence, storageDomain, workspaceRegistry, sessionQuery, agents, sessions Host services and the sidebar.workspaces.session.row.action / sidebar.workspaces.session.menu.item / shell.overlay Client slots.
  • Node.js >= 20. No build step, no runtime dependencies.
  • Windows, macOS and Linux.

中文

DSH(DeepSeek Harness)工作区侧栏增强插件:给侧栏会话行增加一键永久删除,并附带一次轻量确认。DSH 官方只支持归档;持久化层没有删除接口。本插件通过官方扩展 Slot 实现该操作,不注入 DOM、不改官方 UI。

功能

  • 会话行悬停按钮:归档/置顶按钮之后多一个垃圾桶图标按钮。
  • 会话 ... 菜单项:与按钮同一操作,位于官方「复制会话 ID」之后。
  • 一次轻量确认:显示会话标题、不可恢复警告,确认/取消;删除中显示进度,失败就地显示原因。
  • 运行中保护:正在打开/运行的会话一律拒绝删除(否则写句柄会在文件删除后重建出无 header 的坏日志),请先切换到其它会话。
  • 派生会话:目标存在派生会话(子代理,或带 parentSession 的分叉)时,首次删除被拒绝并返回数量;确认框再给出「一并删除 N 个会话」,按先子后父删除整棵子树;子树内有运行中会话则整体拒绝。
  • 完整且边界明确的删除:
  • /sessions/----// 下该会话自己的日志目录(全部格式代际):先把 canonical 日志改名为 *.deleted-<时间戳>(唯一原子提交点,此后该会话对 list/stat/open 立即不可见),再尽力删除目录;
  • session_projcache 存储域中该会话的投影缓存记录(走领域写链,内存与磁盘一致);
  • 尽力清理工作区记账:从所属工作区的 sessionIds、归档集合与置顶集合中摘除。
  • 无需刷新页面:删除成功后本地移除该行,并在后台与 Host 会话基线对齐。
  • 中英双语,继承宿主主题 token 与语言设置。

安装

dsh plugin --profile  add github:LINJJ749/dsh-one-click-session-delete

包内声明了 dsh.bundle 清单,dsh plugin add 会自动写入 profile 的 bundle 层,无需手工改 cordis.patch.yml。

使用

在左侧工作区侧栏把鼠标悬停到会话行上,点击垃圾桶按钮;或打开该行的 ... 菜单选择「删除会话」,在确认框中确认。该行会消失,本地记录永久删除。

只想从侧栏收起、保留记录时,请使用官方「归档会话」。

安全与限制

  • 永久删除:没有回收站、不可撤销;归档会话也可以删除(会同时从归档集合清理)。
  • 正在打开/运行的会话总是被拒绝;删除当前正在查看的会话需要先切换会话。
  • 附件是内容寻址且跨会话共享的,本插件不删除附件。
  • 若部署启用了持久 SQLite 内容搜索索引,本插件不触碰索引文件(该索引自带 reconcile 自愈)。
  • 会话根目录来自运行时 sessionPersistence 服务,回退到启动器提供的 home 路径,不硬编码。
  • Host 半只注册一个同源 JSON 路由(POST /session-delete/api/delete),由 Host 的 connection 信任栅栏保护;Client 半只做 Slot 注册。
  • Host 半以宿主进程权限运行(插件不受沙箱约束),会删除 DSH home 下所选会话自己的存储路径;请阅读源码。

兼容性

  • DeepSeek Harness 0.2.1-rc.2(已实测)。使用 webServer、connection、sessionPersistence、storageDomain、workspaceRegistry、sessionQuery、agents、sessions 等 Host 服务与 sidebar.workspaces.session.row.action / sidebar.workspaces.session.menu.item / shell.overlay 三个 Client Slot。
  • Node.js >= 20。无构建步骤、无运行时依赖。
  • Windows / macOS / Linux。

License

MIT

常见问题

6 问
答案由本站依据条目字段整理,不引用上游原文
dsh-one-click-session-delete 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add github:LINJJ749/dsh-one-click-session-delete` 即可。

dsh-one-click-session-delete 的验证等级是什么意思?

L5 · 运行验证通过。在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来

dsh-one-click-session-delete 安全吗?

低风险。

dsh-one-click-session-delete 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-one-click-session-delete 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

会话与消息
按星标排序,可作替代方案

dsh-desktop

dsh-desktop

为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。

L3 · 安装规范通过 3.0 万 星

openpets

openpets

L4 · 沙盒安装通过 1,274 星

deeptide

deeptide

L4 · 沙盒安装通过 1,104 星

jingyun-dsh

jingyun-dsh

井云 DSH 客户端插件,为 DeepSeek Harness 注入会员登录、订阅支付、算力管控与应用市场,让智能体和技能快速变成可交易商品

L3 · 安装规范通过 1,004 星

study-mate

study-mate

StudyMate 是 DSH 的「学习模式」预设与技能包,为数学、计算机科目定制学习路线、讲解课件与练习评估,跨科目共享记忆。

未标注验证等级 856 星

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 —。