DeepSeek Harness plugin

dsh-session-delete-yhprime

会话删除:在会话头部右侧添加红色垃圾桶按钮(悬停显现),二次确认后删除(归档隐藏)当前会话。

Jump to install

Source facts

Repository
yhPrime/dsh-session-delete
Latest update
Aug 17, 2026
Category
Memory
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/yhPrime/dsh-session-delete
Plugin: dsh-session-delete-yhprime
Author: yhPrime

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

会话删除(dsh-session-delete)

一个 DeepSeek Harness Web 插件:在会话头部右侧("Session log" 导出按钮旁边)添加一个悬停显现的红色垃圾桶按钮,点击后二次确认删除当前会话。

删除走官方 workspaces.archiveSession 客户端 API:会话会被持久化归档隐藏(从侧边栏会话列表移除),若删除的是当前会话还会自动清除当前选中、回到新建会话界面。

功能

  • ✅ 会话头部右侧红色垃圾桶按钮,悬停显现(半透明 → 全亮红 + 高亮背景),与头部其他图标按钮交互一致
  • ✅ 点击弹出二次确认对话框(中文/英文跟随界面语言)
  • ✅ 确认后调用官方归档 API 删除会话,删除中显示"正在删除…",失败显示错误信息
  • ✅ 无 host 端副作用、不替换任何官方 UI,卸载即完全移除

安装

方式一:本地 profile 部署(推荐开发/自用)

把本目录放入你的 profile(例如 C:\Users\<你>\.dsh\profiles\web\),然后在 profile 的 package.json 中:

1. 在 dependencies 添加:

``json "dsh-session-delete": "file:./dsh-session-delete" ``

2. 在 dsh.profile.bundles 数组追加:

``json "dsh-session-delete" ``

3. 在 profile 目录运行安装并重启 Web:

``bash pnpm install # 重启 dsh web 服务 ``

> cordis.patch.yml 会把插件行插入 profile 层;client 端由 dsh-client-modules 扫描 dsh.client 声明自动注入浏览器。

方式二:从 npm / Git 安装

pnpm add dsh-session-delete
# 并在 profile package.json 的 dsh.profile.bundles 中注册

工作原理

  • client 端lib/client.js):以 window.__ModuleLoader__.load 注册为 Web 客户端插件,注入 conversation.session.header.utilities 槽位(会话级、右对齐工具区),order: 100 使其显示在 "Session log" 之后。
  • 删除动作:点击确认后调用 ctx.workspaces.archiveSession(sessionId) —— 官方客户端 API,映射到 host 的 workspaceRegistry.archiveSession,持久化归档 + 通过 host/archived-sessions-changed 帧即时同步 UI。

位置说明

侧边栏会话行上的 ⋯ 菜单是产品内置组件硬编码的,没有给插件留槽位,因此删除按钮放在会话头部右侧的官方可扩展槽位(conversation.session.header.utilities)——这是唯一安全、不遮蔽官方 UI 的会话级入口。

许可证

MIT