dsh-session-delete

DSH PLUGIN会话与消息

仓库 rhl88/dsh-session-delete

会话与消息 未标注验证等级 安全审查:未标注 可信度:未标注 可安装插件

为 DeepSeek Harness 侧边栏会话菜单补上「删除会话」能力,永久移除会话记录与完整历史,突破官方仅能归档的限制。

一句话选型结论

按资料字段整理

dsh-session-delete 是会话与消息类的 DSH 可安装插件,未做沙盒验证,暂无安全审查结论,列出 4 项功能,没有现成安装命令,需要按仓库 README 接入。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

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

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
  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 查看包信息

能做什么

4 项功能
字段来自项目仓库与公开索引,中文说明由本站标注

dsh-session-delete:为 DeepSeek Harness 补上永久删除会话的能力

  • 侧边栏会话菜单新增删除项
  • 删除前弹出确认对话框
  • 物理清除会话日志与投影缓存
  • 同步清理置顶、归档与工作区记账

上游标签

deepseek-harnessdshdsh-plugin

验证等级与安全审查

未标注验证等级
自动化流程结论,不是人工审核
验证等级未标注验证等级上游未给出验证结论,安装前请自行确认
安全审查未标注静态分析结论,未标注不代表已通过审查
仓库健康度未标注按仓库活跃度与最近更新时间给出
可信度未标注综合仓库活跃度与验证结果

选择建议

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

值得选的地方

  • 列出了 4 项功能,能直接看出它解决什么问题。

先想清楚的地方

  • 安全审查还没结论,装之前先看仓库改了什么、要什么权限。
  • 没有现成安装命令,要按仓库 README 手动接入。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

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

不太适合

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

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-session-delete当前 未做沙盒验证 未标注 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 未标注 无

仓库档案

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

README 全文

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

dsh-session-remove

DeepSeek Harness (cordis) bundle plugin adding permanent session deletion to
the Web GUI. Stock DSH only archives sessions: the sidebar session menu gets a
destructive Delete session entry (after pin/rename/fork/archive, behind a
separator), a confirmation dialog, and a host route that physically removes the
session's durable artifacts.


中文说明

在侧边栏会话菜单里加入删除会话:永久移除会话记录与完整历史,补足官方只能归档的限制。菜单项排在 置顶/重命名/分叉/归档 之后,带分隔线与危险色,点击后弹出确认对话框。

安装(三种方式任选)

# ① 从 GitHub 仓库安装(推荐;插件目录里展示的就是这条)
dsh plugin add github:rhl88/dsh-session-delete

# ② 从本地目录 / 预构建 tarball 安装
dsh plugin add D:\path\to\dsh-session-delete
dsh plugin add D:\path\to\local-dsh-session-delete-1.0.0.tgz

# ③ 等价的手工方式(在 profile 目录里)
cd C:\Users\Administrator\.dsh\profiles\desktop
pnpm add github:rhl88/dsh-session-delete
# 再把 dsh.profile.bundles 设为:
#   ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-session-remove"]

# 装完重启 DeepSeek Harness,并刷新 GUI 页面

dsh plugin add 与插件页安装会默认启用该 bundle;只有手工 pnpm add 才需要自己改 dsh.profile.bundles。

删除内容:会话日志目录 ~/.dsh/sessions/<项目目录>/<会话id>/、投影缓存 ~/.dsh/storages/session_projcache/sessions/<会话id>.json,并从工作区记账、置顶集合、归档集合中清除该会话 id,随后广播 api-session/removed,侧边栏立即更新。不删除(v1):内容寻址的附件字节(跨会话共享)、子代理会话日志、全文检索索引行(下次搜索会自动对账剔除)。

安全侧设计:所有注册表调用都带超时且失败不致命——工作区操作队列卡住时仍会删除文件,并在响应里返回 degraded 说明;活动会话未释放句柄则返回 409 且不动文件,稍后重试即可。

两点注意:① 只装一份——行 id 与浏览器插槽 id 固定,同时选中两份安装会冲突;② 改宿主端代码需要重启应用——desktop 组合关闭了模块热重载(HMR root: []),且重新导入同一模块 URL 会命中 ESM 缓存。包内没有声明任何依赖(宿主只用 node 内置模块,客户端只用浏览器模块基线),因此没有版本兼容门槛。

中文详细说明见 INSTALL.zh.md;宿主逐步日志 session-delete.debug.log、浏览器进度标记 session-delete.client.log 都写在已部署的 index.js 同目录,便于排查。自测:node test/paths.test.js、node test/module-load.test.js、node test/delete-flow.test.js。

> 以下为英文文档 / English documentation follows.


What a delete removes

  1. The JSONL backend's session directory
    ~/.dsh/sessions/// (all format
    generations, compression variants, and lease files).
  2. The projection-cache record
    ~/.dsh/storages/session_projcache/sessions/.json.
  3. Registry accounting: the id is detached from its workspace record and
    dropped from the pin and archive sets; api-session/removed is emitted so
    every connected browser reconciles immediately.

Deliberately not removed in v1: content-addressed attachment bytes (shared
across sessions by design), descendant subagent session logs (hidden from the
sidebar anyway), and full-text index rows (the SQLite index reconciles against
persistence on the next search — deleted sessions drop out by themselves).

How it works

Host half (index.js, row session-delete): registers
POST /session-delete/delete on the composition's webServer, behind the
connection trust fence (Host/Origin + browser auth — same gate as the shipped
app routes). One delete:

  1. Resolve the session (live store, then sessionPersistence.stat); unknown →
    404, nothing written.
  2. workspaceRegistry.archiveSession(id, { stopActivity: true }) — the
    registry's own machinery stops the running turn, jobs, subagent descendants,
    and reminders; the archive set gates every wake the stops induce. Idempotent
    when already archived.
  3. Bounded wait (timeoutMs, default 20 s) for the live session to leave
    ctx.sessions — i.e. for session/disposed to drain and close the
    persistence write handle (Windows blocks file removal while it is open).
    Timeout → 409 session-busy; the session stays archived, retry later.
  4. rm -r the session directory (path functions replicate the JSONL backend's
    encodeSegment/projectKey verbatim; every candidate is containment-checked
    inside the configured root, with a bounded retry against transient locks and
    a project-directory scan fallback when the header cwd disagrees with the
    physical layout).
  5. Remove the projection-cache record document.
  6. Detach from the workspace record, unpin, unarchive — each write publishes
    its ordinary feed increment, so sidebars drop the row live.
  7. Emit api-session/removed.

Client half (client.js, web platform): menu entry on
sidebar.workspaces.session.menu.item (order 500, danger + separator) and a
shell.overlay confirmation Modal. Confirm runs
ctx.uiWorkspace.archiveSession(id, { stopActivity: true }) first (stops work
and clears the main view when the deleted session is open, releasing the client
reference that keeps it live), then POSTs the delete route. Failures surface
the host message in the dialog; a failed delete after the archive step leaves
the session archived — hidden but restorable via “unarchive”.

Requires only baseline browser modules (react, @deepseek-ai/dsh-client-store,
@deepseek-ai/dsh-client-ui-primitives) and node builtins on the host — the
package declares no dependencies and no dsh peer ranges, so it raises no
version-exemption friction and resolves in any dsh runtime. The slot owner's
README explicitly instructs resolving MenuItemButton through the loader
require; the tradeoff is coupling to the pinned composition's primitives.

Install

The package is a cordis bundle: package.json declares
dsh.bundle.patch + dsh.client, cordis.patch.yml inserts the
session-delete row, and the profile's dsh.profile.bundles selects it.

# 1. install (any of these)
dsh plugin add github:rhl88/dsh-session-delete        # from this repository (recommended)
dsh plugin add D:\path\to\dsh-session-delete          # from a local directory
dsh plugin add D:\path\to\local-dsh-session-delete-1.0.0.tgz   # from a packed tarball

# equivalently, by hand, from the profile directory:
cd C:\Users\Administrator\.dsh\profiles\desktop
pnpm add github:rhl88/dsh-session-delete

# 2. `dsh plugin add` and the Plugins page enable the bundle by default.
#    Only the manual `pnpm add` route needs the selection written into
#    "dsh": { "profile": { "bundles": [
#       "@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-session-remove" ] } }

# 3. restart the app, then refresh the GUI page

Two notes:

  • Install exactly one copy. The row id (session-delete) and the browser
    slot ids are fixed, so two installations of this plugin — for example the
    published dsh-session-remove and a local revisioned mirror such as the
    -v2 copy this desktop profile was verified with — selected at once collide.
    Remove the other one first: pnpm remove @local/dsh-session-delete-v2.
  • Host-half changes need an app restart. The desktop composition sets the
    HMR row to root: [] — module watching is off, only profile configuration
    reloads — and re-importing the same module URL returns the cached copy.

This workspace directory is the canonical source. The live desktop profile was
verified with a revisioned mirror of it,
C:\Users\Administrator\.dsh\local-plugins\dsh-session-delete-v2\ (identical
files, package name suffixed -v2, matching client module id), created so a
fixed host half could be loaded without an app restart. Switching the profile
back to this canonical package is a bundle-list edit plus a restart.

Debugging a stalled delete

Both halves record progress, so a hang can be located without a browser console:

  • session-delete.debug.log next to the deployed index.js — one line per host
    step (request, fence, body, stat, locate, archive, dispose wait, rm, cache,
    accounting, response), plus a 90 s request watchdog.
  • session-delete.client.log — the browser half's markers (confirm,
    archive, delete: posting, status), posted to POST /session-delete/trace.

Both are plain append-only debug artifacts, safe to delete. The delete route is
deliberately independent of the registry: every registry call is timeout-guarded
and non-fatal, so a wedged workspace operation queue cannot strand a delete —
the files are removed and the response reports the degraded steps.

Tests

node test/paths.test.js         # path encoding, checked against the real ~/.dsh layout
node test/module-load.test.js   # host/client module shape, baseline-only requires
node test/delete-flow.test.js   # the real route against fixture directories:
# plain delete, wedged registry, busy session,
# trust fence, unknown id, malformed bodies,
# hung persistence stat (scan fallback)

Configuration (cordis row config)

key default meaning
timeoutMs 20000 bounded wait for live-session dispose (clamped 1 s–5 min)
sessionsRoot $DSH_HOME/sessions JSONL backend root override
storagesRoot $DSH_HOME/storages storage root override (projection cache)

Development notes

  • paths.js holds the pure path helpers (import-free); test/paths.test.js
    unit-tests them, including spot checks against this machine's real
    ~/.dsh layout (read-only).
  • Session ids never touch the filesystem raw: encodeSegment is injective and
    traversal-safe; record-file names are restricted to the storage backends'
    path-safe key class.
  • Deleting a session with subagent descendants removes only the named session;
    descendant logs stay on disk (their rows are sidebar-hidden).

常见问题

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

本站没有抓到该条目的安装命令,请到仓库主页确认安装方式;这类条目多数是生态应用或尚未发布安装包的项目。

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

未标注验证等级。上游未给出验证结论,安装前请自行确认

dsh-session-delete 安全吗?

未标注。

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

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

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

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

dsh-session-delete 有哪些功能?

侧边栏会话菜单新增删除项、删除前弹出确认对话框、物理清除会话日志与投影缓存、同步清理置顶、归档与工作区记账。

这条记录的数据可靠吗?

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

同名或近似条目

8 条
不同作者的仓库分开列,请确认你要装的是哪一个
会话与消息
按星标排序,可作替代方案

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 星

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