dsh-session-manager: Manage DSH Sessions per Workspace

Introduction

DeepSeek Harness (DSH) adopts an “everything is a plugin” architecture. As usage time increases, session data accumulates continuously, making manual filtering and management inefficient. This plugin provides a structured session management solution designed to solve the difficulty of finding sessions caused by session pile-up.

Plugin Overview

dsh-session-manager is a DSH client plugin maintained by duo-stack. It displays the existing session list grouped by workspace and provides capabilities to archive, unarchive, delete, and batch-clear archived sessions, without altering the host’s original behavior logic.

Installation and Activation

Install the plugin into a specified profile via the official CLI:

dsh plugin --profile <profile> add @duo-stack/dsh-session-manager

Once installation is complete, start DSH using this profile to load the plugin.

Usage

Launch DSH and open Settings. A section named “Session Manager” will appear in the left navigation bar; this is the plugin’s sole UI entry point.

  • Unarchived Tab: Displays currently unarchived sessions. In this tab, you can Archive or Delete individual sessions.
  • Archived Tab: Displays archived sessions. In this tab, you can Unarchive or Delete sessions, or perform Batch Delete by workspace or globally.

Feature Details

  • Grouped Display by Workspace: The session list is grouped by workspace, with each workspace corresponding to a card.
  • Real-time Refresh & No Restart Required: All operations (archive, unarchive, delete) synchronously update the in-memory state and disk via the registry mechanism, triggering a domain/changed event. This causes the left-hand session list and the page to refresh instantly.
  • Automatic Ghost Session Cleanup: Upon startup, the plugin automatically cleans up “ghost sessions” (entries with bookkeeping records but missing directories) left behind by early deletion failures, listing only sessions that still have content directories on disk.
  • Dual-Tab Design: The interface is divided into two tabs, “Unarchived” and “Archived,” ensuring clear operational logic.

Notes

  • Risk of Data Modification: Archiving, unarchiving, and deleting operations directly modify real session data. Please ensure you verify the operation logic in a testing environment before using it in production.
  • Build Restrictions: The plugin’s client bundle cannot be built using the official DSH preset; the project adopts a solution that manually replicates the official lazy-loading factory format.
羽毛球分组比赛记分
小程序二维码

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

Xiaoye