dsh-session-menu: Adding Context Menu and Status Information to DSH Sidebar Sessions

Introduction

In DeepSeek Harness (DSH), the sidebar lists a large number of sessions. The kernel’s built-in interactions often only cover basic operations like opening and archiving. When you need to mark sessions as unread, copy session information, locate session directories in Finder, or open the corresponding workspace with a local IDE, you usually have to search for paths in the file system or terminal yourself.

dsh-session-menu is a community-maintained client plugin that adds these capabilities to the context menu of sidebar sessions, along with status dots on list rows and hover cards. The following sections introduce its purpose, features, installation methods, and configuration highlights.

What Is This

  • Name: dsh-session-menu (npm package name matches the plugin identifier)
  • Maintainer: big-head-pigeon
  • Category: Client (dsh.client, platform is web, effective immediately after installation)
  • License: MIT
  • Environment Requirements: The README specifies DSH 0.2.0-rc.2+; the package depends on @deepseek-ai/cordis etc., and must match the current DSH kernel version

The plugin’s one-line positioning: it provides a context menu for DSH sidebar sessions (mark as unread, copy information, show in file manager, open with specified applications, permanently delete, etc.), along with status dots, hover details, and one-click deletion of archived rows plus batch deletion entry points.

Core Features

All the following capabilities come from the project README and package.json description, and are visible in the sidebar session menu and list rows after installation.

Context Menu

  • Mark as unread: Mark a session as unread
  • Copy: Copy session-related information (sub-items can be toggled individually in settings; if the kernel already has a built-in “Copy Session ID”, the plugin’s same-named sub-item will be disabled by default to avoid duplication)
  • Show in file manager: Show the session location in Finder (macOS file manager)
  • Open with: Open with a configured editor, terminal, or other application
  • Delete session: Permanently delete a session (with a confirmation flow; the README screenshots show the deletion confirmation UI)

List and Archive

  • Status dots: Display status dots on session rows for quick visual differentiation
  • Hover card: Show more session details on hover
  • Archived rows: Support one-click deletion within a row, and provide an entry to batch delete archived sessions (corresponding to “Delete all archived sessions” in settings)

Settings Page Toggles

After installation, the plugin appears under Settings → Plugins → Installed, and a Session menu section is added to the settings with a total of 8 toggles:

Mark as unread · Copy · Show in file manager · Open with · Delete session · Delete all archived sessions · Status dots · Hover card

After turning off a toggle, the corresponding menu item and list display will immediately hide, without needing a restart. Copy and Open with have triangles next to them that can be expanded to toggle each sub-item individually; when the parent item is off, the sub-items will be grayed out. If the community build you are using already includes some of the same functionality, you can disable the duplicate items on this page.

Installation and Activation

All three methods install the dsh-session-menu package from npm. After choosing any one, you need to restart the DSH application (except for the in-app settings toggles).

  1. Open DSH, click Plugins in the left sidebar
  2. Click Add plugin in the upper right corner
  3. Enter dsh-session-menu and click Install
  4. Restart DSH

Method 2: Have the Agent Install

Send the following message to the Agent within DSH:

Install the plugin dsh-session-menu with the plugin manager, then remind me to restart DSH.

Method 3: Terminal

Execute in the macOS terminal (replace desktop with your profile name; you can use ls ~/.dsh/profiles to check, common ones are desktop and web):

dsh plugin --profile desktop add dsh-session-menu

Restart DSH after execution.

Typical Usage and Configuration

Uninstall

Under Settings → Plugins → Installed, click the trash icon on the dsh-session-menu row and confirm.

Configuring “Open with” Applications

The application list in the Open with submenu can be configured in the profile’s cordis.patch.yml. Add an applications block under config, for example:

config:
  applications:
    - kind: editor
      paths:
        - /Applications/Visual Studio Code.app
    - kind: terminal
      paths:
        - /System/Applications/Utilities/Terminal.app

Each configuration entry takes the first existing path in paths, and only matched entries will appear in the menu. Note: config will replace the entire application list, not append to it; after modification, you need to restart DSH.

The UI screenshots in the README (session menu, status dots, hover cards, archive batch deletion, deletion confirmation, plugin list, and Session menu settings) can be viewed in the UI section of the GitHub repository.

Use Cases and Notes

Who it’s for: Developers who frequently manage large numbers of sessions in the DSH sidebar and need to switch between the local Finder / IDE / terminal and session directories; users who need to quickly copy session information or clean up archived sessions.

Permissions and Security: The plugin runs with the current DSH process permissions, and operations like session deletion are not easily reversible. Before installation, it is recommended to read the GitHub repository source code and MIT license to confirm that the behavior complies with your environment policies.

Platform Notes: The “Reveal in Finder” mentioned in the documentation and the terminal installation examples are for macOS; on other systems, behaviors like “Show in file manager” depend on the DSH and plugin implementation on the current platform, and the actual menu should be taken as the standard.

Ecosystem Notes: DSH adopts the “everything is a plugin” philosophy; the SkillHub plugin catalog is a community site and has no official affiliation with DeepSeek / Huan E.

Conclusion

dsh-session-menu extends sidebar sessions from “only clickable” to being able to be marked, copied, located in directories, opened with local tools, and supports permanent deletion and archive cleanup, while using status dots and hover cards to reduce the cost of scanning lists. If you are already using DSH 0.2.0-rc.2 or above, you can install it using the three methods above and toggle features as needed in the settings.

  • Catalog page: https://www.skillhub.cn/plugins/big-head-pigeon/dsh-session-menu
  • GitHub: https://github.com/big-head-pigeon/dsh-session-menu
  • npm: dsh-session-menu (the current version badge in the README corresponds to the npm release)
羽毛球分组比赛记分
小程序二维码

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

Xiaoye