dsh-sidebar-pins: DeepSeek Harness Sidebar Pinned Session Management

Preface

DeepSeek Harness (DSH) 0.1.5-rc.1 introduced architectural changes. The original dsh-session-pin plugin cannot work properly in the current version due to slot limitations and rendering logic differences (e.g., it cannot reflect session rearrangement in the browser sidebar). dsh-sidebar-pins aims to fully replace the old plugin and provide a self-contained sidebar pinned session block.

Plugin Introduction

Name: andreytepaykin/dsh-sidebar-pins

Positioning: Provides an independent pinned session management panel for the left sidebar of DeepSeek Harness.

Author: Andrey Tepaykin

License: MIT

Core Value:
- Moves pinned sessions from a popup into a fixed block within the sidebar.
- Fixes the failure of the old plugin in DSH 0.1.5-rc.1 caused by core API changes.
- Uses an independent settings namespace and supports one-time data migration from the old plugin.

Core Features

  1. Sidebar Pinned Panel
    Displays a “📌 PINNED” block above the “Settings” row at the bottom of the sidebar. The panel height can be up to 30vh with scrollable content; in Rail mode, only icons and counts are shown.

  2. Multiple Pinning Methods

    • Pinned Session Row Click: Click a session item in the panel to open the session; the × button on the right is used to unpin (hidden by default, shown on hover).
    • Session Row Hover: When the mouse hovers over a row in the regular session list, a 📌 button appears for pinning/unpinning.
    • Session Header Toggle: Provides a pin toggle in the header bar of the currently open session.
  3. Data Storage and Migration

    • Pinned state is stored in the plugin’s own settings namespace sidebar-pins (persisted to ~/.dsh/settings.yaml).
    • On first installation, data is automatically migrated once from the session-pin namespace without manual intervention.

Installation and Activation

Install the plugin by running the following command in the terminal:

dsh plugin --profile web add github:AndreyTepaykin/dsh-sidebar-pins

After installation, you need to restart the DSH client and refresh the GUI page for it to take effect.

Usage

  1. Manage Pinned Sessions:
    At the bottom of the sidebar, click the “📌 PINNED” header to manually collapse/expand the panel.
  2. Operate Sessions:
    • In the pinned panel, click a session entry to open it directly.
    • In the regular session list, hover over any row and click the 📌 button that appears to pin it to the panel above.
    • In the header of the currently open session, use the button in the action bar to pin it.
  3. Rail Mode:
    When the sidebar is in Rail mode (icons only), the pinned panel automatically adapts to show only icons and the pinned session count.

Limitations and Caveats

  1. Main List Is Not Rearranged
    The plugin does not modify the order of the main session list. Pinned sessions remain in the regular list and are managed only through the panel above. This is due to limitations in the DSH core architecture; the plugin cannot access data from the browser rendering layer.

  2. Session Row Identification Dependency
    In the session row hover pinning feature, session row identification relies on React Fiber (__reactFiber$...), falling back to nested spans with a unique title. If there are sessions with duplicate titles, the button may not appear.

  3. Row Buttons in Rail Mode
    In Rail mode, session row elements do not exist in the sidebar DOM, so the in-row hover pinning buttons will not appear. Pinning is only available through the pinned panel and header buttons.

  4. Panel Height and Position
    The panel height is dynamic (up to 30vh) and does not squeeze the “Settings” row. The position is automatically calculated from anchor markers; manual user configuration of the position is no longer supported.

Conclusion

This plugin is fully compatible with DSH 0.1.5-rc.1 and serves as the successor to dsh-session-pin, providing stable pinned session management capabilities. To view the source code or submit issues, visit: GitHub | SkillHub Directory

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

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

Xiaoye