Seetraum/harness-session-delete
Deepseek Harness 删除会话
Project Overview项目介绍
dsh-session-recycle-bin adds a recycle bin for DeepSeek Harness sessions. Each sidebar session shows a delete icon, and a Settings page enables single or batch restore and permanent delete, removing log files and projection-cache entries while protecting live sessions. Use it to manage accumulated history. Note: the sidebar icon moves sessions to the bin instantly with no confirmation, so verify the target before clicking.
dsh-session-recycle-bin 是 DeepSeek Harness 的会话回收站插件。它在侧边栏为每个会话提供删除图标,并增设回收站管理页,支持单条或批量恢复与永久删除,同时彻底清理磁盘日志与投影缓存,并拒绝删除正在运行的会话,适合需要频繁整理历史会话的用户。需注意:单次点击即移入回收站,无确认弹窗,操作前请确认目标。
请帮我了解并安装插件:【harness-session-delete】【https://github.com/Seetraum/harness-session-delete】
Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-session-recycle-bin
把 Seetraum/harness-session-delete 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-session-recycle-bin
Session recycle bin & permanent delete for DeepSeek Harness.
Move sessions into a recycle bin from the sidebar, restore or permanently delete them (single or batch), with live-session protection.
✨ Features
- Sidebar per-session delete icon — hover a session row, a small trash icon appears; click to move it into the recycle bin instantly (no confirmation; always recoverable).
- Session-header delete button — delete the current session from the conversation header.
- Recycle-bin manager (Settings → 🗑 会话回收站) — archived sessions with multi-select: batch restore, batch permanent delete; each item shows its ID and path.
- True permanent delete — physically removes the session log from disk and the projection-cache record; ghost sessions (records without a log) are cleaned up so they vanish instead of lingering.
- Live-session protection — sessions with an active agent are refused deletion.
- Batch fault tolerance — batch operations delete per-session with error collection and reporting.
- Light/dark adaptive UI — all colors are CSS custom properties in
client.css; components follow the resolved DSH appearance (data-ds-dark-theme) withprefers-color-schemeas the OS-level fallback (no hardcoded palette).
📦 Install
One-click from the plugin market (dsh-market)
Once listed in the awesome-dsh-plugin registry: open Settings → Plugin Market → search dsh-session-recycle-bin → install.
Manual
dsh plugin --profile web add dsh-session-recycle-bin
Then restart the web app (stop the dsh web process and run dsh web again).
Local development install
dsh plugin --profile web add link:/absolute/path/to/harness-session-delete
Uninstall
dsh plugin --profile web remove dsh-session-recycle-bin
🚀 Usage
- Sidebar delete — hover a session in the left sidebar, click the trash icon: the session moves into the recycle bin and the row disappears immediately.
- Settings recycle bin — open Settings ⚙️ → 🗑 会话回收站:
- Checkbox multi-select → Restore (batch unarchive) or Permanent delete (batch purge).
- Each entry shows the session name, ID and working path (hover for full details).
- Permanent delete physically removes the log and projection cache; live sessions are protected.
- Undo — restoring shows an undo toast that re-archives the session.
🛠 Development
pnpm test # run the test suite (host logic + HTTP routes)
Repo layout:
harness-session-delete/
├── package.json # single bundle manifest (dsh.bundle.patch + dsh.client)
├── cordis.patch.yml # bundle patch: one insert mounting the host row
├── index.js # node half: host entry (inject + apply)
├── client.js # browser half: sidebar icons + settings recycle bin
├── client.css # plugin stylesheet: design tokens + light/dark adaptive components
└── packages/
└── session-trash-host/ # host implementation (persistence/workspace/cache patches, HTTP routes)
🔌 How it works
- A single npm bundle covers both halves, same as other published plugins: the host row mounts via
cordis.patch.yml; the browser half joins automatically throughdsh.client+exports["./client"]. - The browser talks to the host over the plugin's own
/api/session-trash/*HTTP routes (registered on the webserver; non-GET requests carry anx-dsh-pluginCSRF header).
liangmianya/dsh-synapse
alaliqing/claude-paper
omdsh-dev/dsh-annotation
Anionex/dsh-turn-rewind
hanshenmesen/dsh-turn-delete
qkycir-123/dsh-run2skill
Tyan66666/billion-context-dsh
PKUfudawei/dsh-capability-menu