dsh-session-delete-ui: DeepSeek Harness Session Deletion Plugin

Preface

The official implementation of DeepSeek Harness (DSH) primarily provides session archiving capabilities and lacks a direct method to delete sessions. The documentation for dsh-session-persistence explicitly states “No deletion or retention API”. As a DSH plugin, dsh-session-delete-ui fills this gap by adding a “Delete Session” option to the “⋯” menu on the session row in the sidebar. It integrates disk cleanup with workspace record purging within a confirmation dialog.

Core Features

  1. Adds a “Delete Session” item to the session row “⋯” menu (order 500).
  2. Permanently deletes local log directories, projection caches, and workspace records.
  3. The confirmation dialog displays an irreversible warning, the count of cascading subagents, and the disk space occupied.
  4. Performs active work checks; if work is active, offers a “Stop and Delete” option.
  5. Cascading deletion for subagent sessions (origin: subagent); forked sessions remain unaffected.

Installation

This plugin is installed via a bundle. The target directory must be specified as an absolute path:

Settings → Plugins → Install bundle, enter the absolute path to this directory as the target: D:\path\to\dsh-session-delete-ui

Usage

  1. Select “Delete Session” from the “⋯” menu on the session row.
  2. View the list of active tasks and select “Stop and Delete”.

Notes

  • There is no recycle bin; deletion is irreversible.
  • Only cleans up files and records relevant to this plugin; does not clean up third-party plugin ledgers.
  • Maximum cascading depth is limited to 6 levels.
  • Requires restarting DSH if the Host side is modified.
  • Process may still hold memory instances after deletion, potentially resulting in “ghost rows”.

Ecosystem Information

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye