RecentSessions: DSH All Sessions Main Panel Plugin

Introduction

DeepSeek Harness (DSH) adopts a “everything is a plugin” architecture, allowing developers to extend client capabilities through plugins. In multi-session parallel development scenarios, frequently switching through the session list in the official sidebar tends to disrupt the workflow. When there are many sessions, locating a specific one requires multiple navigation clicks. The existing sidebar does not allow viewing an overview of all sessions directly in the main interface, nor does it support filtering by workspace as a group or unified archival indicators.

Plugin Overview

RecentSessions is a DSH Web client plugin provided by the maintainer x-cores. It adds an “All Sessions” main panel to the DSH Web GUI, following the same layout pattern as “Context Insights” and “Skill Center” — a left navigation entry combined with a main conversation area panel. The plugin consolidates all sessions into a single list sorted by update time in descending order, supporting search, pagination, archival indicators, and workspace-level group filtering.

Core Features

Full Session List

The list includes archived sessions, sorted by updatedAt in descending order, with a global sequence number prefixed to each row. Each session displays its title, workspace name, working directory name (only the last segment, without exposing the full path), relative time, and absolute time.

Status Badges

Session status is categorized into four types: current, pinned, running, and archived. Archived sessions are grayed out and do not navigate on click; all others navigate directly to the corresponding conversation.

Supports real-time filtering by title, session ID, path, and workspace name. Input uses useDeferredValue to maintain smooth typing performance; the list appears semi-transparent to indicate filtering is in progress. Press Esc to clear the query instantly.

Pagination

Defaults to 20 items per page, with options to switch between 10 / 20 / 50 / 100 items. Preferences are persisted to localStorage.

Workspace Filtering

Allows hiding all sessions under specific workspaces (e.g., the default example “Memory Hub”) as a group. Supports one-click addition from existing workspaces, and the filter list is persisted.

Theme Adaptation

Native dropdown control colors automatically adapt under dark/light themes. A MutationObserver monitors theme attribute changes for instant updates, with no polling overhead.

Entry Points

An “All Sessions” row appears in the left navigation, and a session icon button appears on the input dock. Clicking either opens the main panel.

Data Source

All data comes from the browser-side official client snapshots ctx.get('sessions').list and ctx.get('workspaces').list, sharing the same source of truth as the official sidebar. No Host involvement and zero new IPC calls. Navigation uses ctx.get('uiWorkspace').openSession(id).

Offline / Intranet Ready

This plugin references no internet resources:

  • No CDN scripts/styles, no external fonts, icons, or images;
  • All styles are inline React styles plus a single injected inline <style> block;
  • All icons (panel, empty state, clock, funnel, entry button) are inline SVGs;
  • Runtime dependencies such as React are provided locally by the DSH client module loader;
  • localStorage stores local preferences with zero network requests.

It can be deployed and run in a fully offline intranet environment.

Installation & Enablement

Install with the following command:

dsh plugin link /path/to/RecentSessions/plugin

Or link the local package via the plugin manager in the Web GUI. After installation, refresh the page — “All Sessions” will appear in the left navigation.

Development & Self-Verification

No build step required; the source is the artifact. Verification commands:

node --check plugin/client.js   # syntax check
node --check plugin/index.js

After making changes, refresh the page in the Web GUI (hot-reload of client plugins is available when the pnpm run dev:web watcher is running). Check: list loading, search, pagination, per-page size switching, workspace filter add/remove, dark/light theme switching, and click-to-navigate.

Compatibility

  • Depends on the DSH Web client’s window.__ModuleLoader__ module loader and slots injection system;
  • Automatically falls back to synchronous filtering when useDeferredValue is unavailable, with no functional impact;
  • Degrades to 15-second low-frequency polling for theme detection when MutationObserver is unavailable.

Use Cases

Suited for developers who need to manage multiple sessions from the main interface, browse sessions grouped by workspace, or deploy DSH in intranet environments.

Note: The plugin runs with the current DSH process privileges. Review the source code and license before installation.

Summary

RecentSessions provides a centralized session list and filtering capability in the DSH main interface, allowing you to view and navigate to sessions without leaving the current conversation. Combined with its offline operation capability, it is well-suited for privacy-sensitive and network-restricted scenarios. See the links below for the plugin directory page and source code repository.

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

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

Xiaoye