dsh-workspace-badge: Sidebar Session Workspace Badge

In the sidebar session list of DeepSeek Harness (DSH), when in the “Single Column / Latest on Top” (flat + recency-sorted) mode, the list only displays the session title and time, but not the workspace (project folder) it belongs to. When there are many projects, it is difficult to distinguish the specific context of different sessions. This plugin aims to solve this problem.

This is a DSH plugin maintained by ChrisLou-bioinfo. It adds workspace badges to the sidebar session list, helping developers quickly identify the project a session belongs to within a flat list.

Core Features

  1. Inline Badge Injection: Injects the workspace badge (basename) next to the title on each row.
  2. Mode Adaptation: Displays the workspace name in flat mode; automatically skips injection in grouped mode (where group headers already exist on the row).
  3. Smart Pinning: Monitors running sessions and automatically pins workspaces containing a running session to the top. It does not automatically unpin when the session stops, allowing for manual adjustment.
  4. Hover Display: Shows the full workspace path via a hover tooltip.

Installation and Activation

Install the plugin using the official command:

dsh plugin add github:ChrisLou-bioinfo/dsh-workspace-badge

The plugin is compatible with DSH 0.2.0-rc.2 and above, and relies on the data-row-key="session:<id>" anchor on the row.

Typical Usage

After installation, in flat mode, list rows will appear as Title [Workspace] 3 minutes ago. Workspaces with running sessions will automatically float to the top of the list. In grouped mode, badges will not be displayed redundantly.

Use Cases and Notes

This plugin is suitable for developers who need to switch quickly between multiple projects. It runs with the permissions of the current DSH process. It is recommended to check the source code and license (MIT) before installation.

Please note the following:
* The plugin is implemented via a pure client-side DOM patch.
* The flat mode detection relies on the dsh.workspace.view.v5 localStorage key.
* The plugin skips redundant display if search result rows already contain the workspace name.
* The badge may fail silently if the host DOM structure changes.

Summary

This plugin is implemented via a pure client-side DOM patch. It does not alter the official sorting logic (except for pinning running sessions) and only enhances information display. For more details, please refer to the GitHub Repository.

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

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

Xiaoye