DeepSeek Harness: Delete the Conversation Plugin

Introduction

In daily use of DeepSeek Harness, the sidebar session list gradually grows longer as conversations accumulate. Sessions that have not been cleaned up for an extended period can easily disrupt your workflow. DSH does not natively provide a one-click session removal feature, so a third-party plugin is needed to fill this gap. gxyfly/dsh-session-delete-menu is a desktop plugin designed precisely for this purpose. It offers confirmation-based deletion and local backup capabilities through a right-click context menu, giving you more control over session management.

Plugin Overview

This is a session management plugin for the DeepSeek Harness desktop client, developed by maintainer GxyFly. The plugin is compatible with DSH Desktop 0.2.2-rc.5. It extends the right-click context menu by injecting client UI components, supporting pre-deletion confirmation and retaining session records in a local backup directory, without affecting workspace files.

Core Features

  • Right-click deletion: Right-click a session in the left sidebar list, select the red “Delete Conversation” option, and confirm to remove it from the sidebar.
  • Local backup: The deletion operation does not wipe records. Instead, it moves the data into a .session-trash directory under the DSH data directory.
  • Session recovery: Manually move the file from the backup directory back to sessions/<group>/session-<session ID>, keeping the original session ID intact. Restart DSH to restore the session.

Installation & Setup

Target environment: DSH Desktop 0.2.2-rc.5. Download the corresponding .tgz package from GitHub Releases and use the built-in CLI tool in DSH to install it.

& 'C:\path\to\dsh\resources\runtime\cli\bin\dsh.cmd' plugin --profile desktop add 'C:\path\to\dsh-session-delete-menu-0.1.0.tgz'

After installation, restart DSH. Right-clicking the session list will reveal the new “Delete Conversation” option.

Usage & Recovery

Deleting a Session

  1. Right-click the target session in the left sidebar list.
  2. Select “Delete Conversation”.
  3. Click Confirm in the confirmation dialog. The session will be removed from the sidebar and moved to the local backup.

Notes

  • After confirmation, only the selected session is processed. Batch deletion is not supported.
  • Sessions with running or queued tasks, active write locks, or unverified storage locations will be rejected. It is recommended to wait for tasks to complete first.
  • If you receive a message indicating the session cannot be closed, try restarting DSH before attempting the deletion again.

Manually Restoring a Session

The backup directory is located at .session-trash under the DSH data directory by default, with the structure .session-trash/<group>/<timestamp>-<random ID>__session-<session ID>. To restore manually:

  1. Close DSH.
  2. Move the file from the backup directory back to sessions/<group>/session-<session ID>, keeping the original session ID unchanged.
  3. Restart DSH.

Note: Pinned or archived states will not be restored with the backup.

Use Cases

  • Developers who need to periodically clean up the sidebar list to keep their workspace tidy.
  • Users who want to confirm before deleting a conversation to avoid accidental operations.
  • Scenarios where long-term retention of session records is required and a local backup is desired.

The plugin runs with the current DSH process permissions. It is recommended to review the source code and license before installation.

Conclusion

gxyfly/dsh-session-delete-menu provides a safe path to delete sessions within DSH. Through its right-click confirmation and local backup mechanism, it aligns session management with real-world workflow needs. To learn more or obtain the installation package, visit the project homepage or GitHub repository.

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

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

Xiaoye