dsh_session_delete
Manifest validA DSH plugin for deleting a sidebar conversation after confirmation
dsh_session_delete
在左侧会话的「…」菜单添加「删除此对话」,二次确认后删除本地会话记录。
适配 DSH 0.2.0-rc.2 的 JSONL 存储。使用 DSH 原有菜单、弹窗与带认证的 API,不需要构建步骤或额外依赖。
安装
dsh plugin --profile web add github:lvzhiyuan0308/dsh_session_delete
安装后重启 DSH,再刷新页面。点击会话「…」→「删除此对话」→「删除」。取消或关闭弹窗不会删除。
实现边界
- 只删除所选会话,停止其运行工作并等待会话写入关闭;不删除工作目录、其他会话或共享附件。
- 清理工作区会话关联、置顶及归档标记,并通知客户端移除条目;搜索索引通过 DSH 的下次查询自动同步。
- 会话目录保留 DSH 的
session.lock空锁文件,避免与其他进程争用同一个锁;对话日志及历史格式文件会删除。 - rc.2 没有公开的删除/释放接口,因此后端使用其
agentLoop.prepare获取正常生命周期释放函数,以及 JSONL 文件定位和锁接口。升级 DSH 后需重新验证这几个接口。 - 插件启用前已加载的会话需要重启 DSH 后才能删除,以保证有正确的生命周期释放函数。
核心代码只有 index.js(后端)和 client.js(前端)。
Comments
Loading…
Similar plugins
by shuiqian520
DSH plugin: permanently delete a session from the sidebar menu, and retry a user message or an assistant reply.
★ 3
↓ 760/wk
MIT
JavaScript
Oct 17, 2026
dsh plugin --profile web add dsh-session-deleteby SereinHK
A DSH plugin that deletes a conversation from disk — the destructive Session action DSH deliberately omits — plus bulk cleanup of empty Sessions. For DSH 0.2.x.
★ 0
MIT
JavaScript
Nov 16, 2026
dsh plugin --profile web add dsh-plugin-session-deleteby Very12345
Delete a conversation straight from the DSH Web GUI sidebar row, including its DSH archive-gate entry. Standalone, DSH-version-agnostic DSH plugin.
★ 0
MIT
JavaScript
Oct 2, 2026
dsh plugin --profile web add @very12345/dsh-archive-deleteby Marco77Cl
Adds a Delete conversation action to the conversation menu that permanently removes the session log, projection cache, and sidebar entry; refuses while a turn, subagent, job, or reminder is running.
★ 0
MIT
JavaScript
Nov 11, 2026
dsh plugin --profile web add dsh-plugin-conversation-deleteby wooxi
Permanently delete DSH sessions from the sidebar with a themed confirmation dialog and no page reload.
★ 0
MIT
JavaScript
Oct 26, 2026
dsh plugin --profile web add dsh-plugin-session-deleteA DeepSeek Harness Web plugin for quickly and thoroughly deleting sessions. 快速彻底删除会话的 DeepSeek Harness Web 插件。
★ 0
MIT
JavaScript
dsh plugin --profile web add @kagurazakayashi/dsh-delete-session