Introduction

DeepSeek Harness (DSH) 0.1.1-rc.2 provides an “archive session” feature, but it is designed to be one-way: after archiving a session via right-click, the system does not provide an interface to cancel the archive or restore it. Archived sessions disappear from the sidebar, and recovering them usually depends on specific internal operations, with no general management method available.

dsh-archive-manager is a DSH plugin designed to fill this gap. It provides a list view of archived sessions on the settings page and includes a one-click restore feature that returns sessions to the sidebar immediately, without requiring a service restart.

Plugin Overview

Name: dsh-archive-manager
Maintainer: zengcj-dev
License: MIT

This plugin injects a new section into the DSH settings page, listing the title, creation time, and associated workspace of all archived sessions. It also registers a same-origin route on the server side to remove a specified session from the archived list.

Core Features

  1. View archived list: Displays the metadata of all archived sessions.
  2. One-click restore: Clicking the restore button returns the session to the sidebar session list immediately.
  3. Page injection: Uses DSH’s slots mechanism to add a section to the settings page.
  4. Server-side routes:
    - GET /plugins/dsh-archive-manager/list: Reads and returns the archived list.
    - POST /plugins/dsh-archive-manager/unarchive: Executes the restore operation.

Installation and Activation

After publishing to GitHub, you can install it with the following command:

dsh plugin --profile web add git+https://github.com/zengcj-dev/dsh-archive-manager.git

After installation, restart dsh web, and the plugin will be available under Settings → Archived Sessions.

Usage Steps

  1. Open the DSH settings page and navigate to Archived Sessions.
  2. Find the session you want to restore in the list.
  3. Click the Restore button next to the session.
  4. The session will immediately return to the sidebar session list, with its historical content fully preserved.

Compatibility and Notes

  • Dependency version: Requires DSH 0.1.1-rc.2 (web profile).
  • Internal interface: The restore feature calls the internal interface workspaceRegistry.setState from this version. If DSH is upgraded and provides an official unarchive API, it is recommended to use the official API instead.
  • Runtime environment: The server side uses ESM and has no build dependencies; the browser side uses React 18 + native fetch, with no build steps.
  • Permission notes: The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license before installation.

Conclusion

Session archiving is a basic feature in DSH 0.1.1-rc.2, but its one-way design causes inconvenience. dsh-archive-manager completes the “restore” step, establishing a full closed loop for session management. For more details, see the GitHub repository.