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¶
-
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. -
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.
- Pinned Session Row Click: Click a session item in the panel to open the session; the
-
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-pinnamespace without manual intervention.
- Pinned state is stored in the plugin’s own settings namespace
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¶
- Manage Pinned Sessions:
At the bottom of the sidebar, click the “📌 PINNED” header to manually collapse/expand the panel. - 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.
- 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¶
-
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. -
Session Row Identification Dependency
In the session row hover pinning feature, session row identification relies on React Fiber (__reactFiber$...), falling back to nestedspans with a uniquetitle. If there are sessions with duplicate titles, the button may not appear. -
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. -
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