Skip to content

dream12347/dsh-delete-session

51Last commit Aug 15, 2026

dsh-delete-session DSH plugin

dsh-delete-session is a DSH plugin that adds a comprehensive session management panel to the DeepSeek Harness web interface. It provides settings page and conversation header entries for deleting sessions (with a trash can for recovery or permanent removal), restoring archived sessions, viewing recent activity stats, continuing/pausing sessions, and opening log directories. It does not modify DSH core code.

How to install the dsh-delete-session DSH plugin

dsh plugin --profile web add 'github:dream12347/dsh-delete-session#v0.1.4

Copying does not run this command. Review the repository and version before installing the dsh-delete-session DSH plugin.

dsh-delete-session DSH plugin data source

dsh-delete-session DSH plugin snapshot date: Aug 16, 2026

discovered

What the dsh-delete-session DSH plugin can do

  • Delete sessions with trash can (keep last 10, auto-clear oldest) and ability to recover or permanently delete
  • Restore archived sessions from a dedicated collapsed section
  • View recent activity statistics per session (rounds, user messages, assistant messages, tool calls, activity window)
  • Continue or pause a running session
  • Open session log directory in system file manager
  • Workspace management: group sessions by workspace, sort by last used, drag to reorder, rename, delete workspace (only removes from list, keeps folders and sessions)
  • Header buttons for quick access to session management drawer, trash can, and delete current conversation
  • Auto-adapts to page language (EN/CN)

Where the dsh-delete-session DSH plugin fits

  • Clean up old or unwanted sessions without losing data permanently (trash can)
  • Recover accidentally deleted sessions from the trash can
  • Restore archived sessions back to the active session list
  • Monitor session activity statistics to identify usage patterns
  • Organize sessions by workspace and reorder them for better workflow

Who the dsh-delete-session DSH plugin is for

  • DSH users who frequently manage multiple sessions and need a visual interface
  • Developers and power users who want to keep their workspace organized without leaving the web UI

dsh-delete-session DSH plugin limitations

  • Cannot delete running sessions (button disabled, deletion refused)
  • Sub-agent sessions cannot be deleted (they are managed by DSH delegation)
  • Live sessions deleted within the current process will be fully cleaned only after DSH restart
  • Permanently deleted session IDs linger in browser localStorage and archive set (harmless, not displayed)
  • Currently compatible with DSH 0.1.0-rc.6; may need adaptation with future DSH versions

dsh-delete-session DSH plugin: from the repository README

Quoted from the dream12347/dsh-delete-session README, the upstream source of the dsh-delete-session DSH plugin. Copyright remains with the original authors.

这可能是目前功能最全的 DSH 会话管理插件:在 DeepSeek Harness Web 界面中全面**管理会话**,设置页与对话顶部均提供入口,支持删除(回收站可恢复或彻底清除)、恢复已归档会话、查看近期活动统计、继续/暂停会话、打开日志目录,不修改 DSH 核心代码。 <sub><span style="opacity:.6">本项目由 dsh + Deepseek-V4-Flash0731 独立完成</span></sub> ## 功能 - 设置页新增独立的「会话管理」分栏(与 Notifications 同级的设置分区) - 面板列出全部会话(标题 / 工作目录),底部折叠区单独展示**已归档会话**,支持**一键恢复**回到会话列表 - **回收站**:删除的会话移入回收站(保留最近 10 条,超出自动清除最早一条),可**恢复**或**彻底删除** - **统计**:每个会话可展开查看近期活动统计(轮次 / 用户消息 / 助手消息 / 工具调用 / 活动窗口) - **继续会话**:一键打开会话并关闭面板;**暂停**:停止正在运行会话的当前回合 - **文件夹**:在系统文件管理器中打开会话日志目录 - **删除本对话**:对话顶部右侧红色按钮,一键删除当前对话(Session log 左侧) - **对话管理 / 回收站**:对话顶部入口,打开自绘右侧抽屉(图钉固定常驻、点击外部自动收起) - **工作区管理**:会话按工作区分组展示,组内按最后使用时间排序(可切换最新/最旧);拖拽工作区标题即可调整顺序(插入 / 交换 / 拖到末尾);悬停标题出现**置于顶部 / 重命名 / 删除**按钮(删除按官方定义:仅移出列表,文件夹与会话记录保留,会话归入「未分组」) - 删除限制:仅禁止删除「正在思考」的会话;当前打开的会话(空闲)可删除 - 子代理(subagent)功能不受影响:其会话由 DSH 委派机制管理,本插件不提供删除入口(子代理需在其父会话中结束/清理) - 中英文界面自适应(跟随页面语言) ## 截图 设置页「会话管理」分栏(含已归档区与回收站): ![设置页会话管理](assets/settings-section.png) 对话顶部快捷入口(对话管理 / 回收站 / 删除本对话): ![对话顶部快捷入口](assets/header-buttons.png) 会话管理抽屉(图钉固定、点击外部收起): ![会话管理抽屉](assets/session-drawer.png) ## 安装 ### 从 GitHub ```sh dsh plugin --profile web add 'github:dream12347/dsh-delete-session#v0.1.4' ``` ### 从本地目录

Read the full READMERepository license: MIT

dsh-delete-session DSH plugin questions

How do I delete a session permanently without sending it to trash?

The plugin always moves deleted sessions to the trash can first. To permanently delete, open the trash can in the settings page or drawer, find the session, and click the 'Permanently Delete' button. This action is irreversible. Alternatively, you can wait for the trash can to automatically clear the oldest entry when it exceeds 10 items.

Can I recover a session that I accidentally deleted?

Yes, deleted sessions go to the trash can (holding the last 10 deletions). Go to Settings > Session Management, scroll to the bottom 'Trash' section, expand it, and click 'Restore' next to the session. The session will be moved back to the active session list. If the trash can has been cleared (e.g., after 10 new deletions), recovery is not possible.

Why can't I delete a session that is currently running?

The plugin prevents deletion of running sessions to avoid data loss or corruption. You must first stop the session (e.g., by pausing it or waiting for it to finish) before deleting. In multi-tab situations, ensure the session is not active in another tab.

How do I organize my sessions by workspace?

In the Session Management panel, sessions are grouped by workspace. You can drag the workspace title to reorder workspaces. Hover over a workspace title to see options: 'Bring to Top', 'Rename', or 'Delete' (only removes from the list, keeps folders and sessions). Within a workspace, you can toggle sort order (newest or oldest first) using the button.

Is this plugin compatible with the latest DSH version?

The plugin is currently tested with DSH 0.1.0-rc.6. It relies on specific DSH internal services (settings.section slot, ctx.sessionPersistence, ctx.workspaceRegistry, ctx.agents, ctx.storageDomain). If DSH updates these APIs, the plugin may need an update. Check the GitHub repository for compatibility notes or new releases.