Preface¶
In the DSH Web GUI, sessions can be pinned. Pinned items appear at the top of their respective workspace group lists. When the number of pinned sessions grows, they remain scattered across their individual groups, which conflicts with the habit of “wanting to see all pinned sessions at a glance and switch between them quickly.” This plugin does not replace the official list behavior; it adds an independent Pinned bar above the workspace list. It centrally displays the pinned set persisted in the Host and supports drag-and-drop between it and the workspace list.
The following section introduces the client plugin dsh-pinned-session-bar (GitHub: YubaiLoving/dsh-pinned-session-bar), released by maintainer YubaiLoving. It is categorized as a client-side plugin suitable for the DSH Web GUI with a browser interface.
What is this¶
dsh-pinned-session-bar is a client plugin for the DeepSeek Harness (DSH) Web GUI. It mounts a Pinned bar directly above the sidebar workspace / session list. It reads the pinned set persisted by the Host (ctx.workspaces.list → pinnedSessionIds), centrally lists all pinned sessions, and supports sorting within the bar as well as cross-container drag-and-drop between the bar and the list.
The built-in session list remains unchanged—pinned rows still appear at the top of their respective workspace groups. The Pinned bar serves as an additional aggregation view, not a replacement for the official list.
Core Features¶
Centralized Display of Pinned Sessions¶
The plugin reads data from the Client services ctx.workspaces / ctx.sessions and renders the bar via a Portal before the [data-slot="sidebar.workspaces"] node. Each row in the bar corresponds to a pinned session within the current profile.
Cross-container Drag-and-Drop¶
The drag-and-drop protocol matches the official browser rows (native HTML5 DnD), allowing movement between the bar and the workspace list:
- Drag a session row from the workspace list onto the bar → calls
ctx.workspaces.pinSession; the newly pinned item is placed at the front of the bar. - Drag a row from the bar back to the workspace list → calls
ctx.workspaces.unpinSession. - When hovering with a dragged item over the bar, the bar displays an accent border and a “release to pin” hint.
Dragging back to the list only unpins the session; the specific drop position within the list is still determined by the official ui-workspace sorting rules.
In-bar Sorting and “New Pins at Front”¶
The order within the bar is stored in the browser localStorage key dsh.pinnedBar.order.v1. You can drag rows up and down within the bar to adjust the order. Newly pinned sessions that have never been sorted within the bar jump to the very front, consistent with DSH’s semantic that “pinning moves a session to the front.” Rows that have been manually sorted maintain their relative order.
Interaction Details¶
- Current Session Highlighting: Follows the same rules as the official list (
retainedBy.mainView > 0, no highlight when a global panel is open) and setsaria-current. - Unpinning: A
✕button appears on row hover; its effect is equivalent to dragging the row out of the bar. - Opening a Session: Click the row, or press Enter / Space.
- Collapsing: Click the bar title to collapse; the state is saved in
localStorage: dsh.pinnedBar.collapsed.v1. - Narrow Sidebar: When the sidebar collapses to the 56px rail, the bar is hidden via a container query; drag-and-drop is unavailable in this state.
Installation and Activation¶
The plugin runs with the permissions of the current DSH process. Before installation, it is recommended to review the source code and the MIT license on GitHub to ensure compliance with your environment policies.
Install from GitHub (Recommended)¶
Execute the following in DSH:
plugin_manager install_bundle target="github:YubaiLoving/dsh-pinned-session-bar"
Alternatively, paste the same spec into the Web GUI’s Plugins page. DSH will install the package and enable the bundle; the bar will appear after refreshing the page.
Manual Installation¶
- Place the package into the profile’s
node_modules:
~/.dsh/profiles/<profile>/node_modules/dsh-pinned-session-bar/
- Add a loader line in
cordis.patch.yml, or declare it in the profile’sdsh.profile.bundles:
- insert:
- id: ui-pinned-bar
name: 'dsh-pinned-session-bar'
- Refresh the page; if the bar is still missing, restart DSH.
Environment Requirements (from README): A DSH Web GUI with a browser surface (@deepseek-ai/dsh-web-app); package.json declares dsh engine >=0.1.7-rc.2, and development/validation was targeted at DSH 0.2.0-rc.2. The plugin depends on two DOM conventions: [data-slot="sidebar.workspaces"] and [data-row-key^="session:"].
Typical Usage¶
Once installed and refreshed, it works without additional configuration:
- In the workspace list, drag a session row onto the Pinned bar above → the session is pinned and appears in the bar.
- Drag rows within the bar to adjust the pinned order you prefer (stored only in this browser).
- Click a row in the bar to open the corresponding session; to unpin, hover and click
✕, or drag it back to the workspace list below. - When there are many sessions, click the bar title to collapse the Pinned area, freeing up space for the list.
Use Cases and Notes¶
Suitable for: Developers who maintain multiple agents / workspaces in the DSH Web GUI long-term and frequently pin several sessions for quick switching. This bar is an incremental UI addition for those who want pinned sessions displayed separately from the session list without altering the official list behavior.
Known Limitations (from README):
- Depends on the DOM selectors mentioned above; if DSH changes the slot or row key in the future, the plugin will require updates to its matching logic.
- The order within the bar is browser-local only and is independent of the official list’s manual sorting (ui-workspace view store).
- The bar is hidden in sidebar rail mode, and drag-and-drop is unavailable.
The DeepSeek Harness ecosystem emphasizes “everything is a plugin.” Community directory sites (such as SkillHub) have no official affiliation with DeepSeek / High-Flyer. This plugin comes from community maintainer YubaiLoving, currently has 0 stars on GitHub, and is at version 1.0.0.
Links¶
- Community Directory Page: https://www.skillhub.cn/plugins/YubaiLoving/dsh-pinned-session-bar
- Source Code & Documentation: https://github.com/YubaiLoving/dsh-pinned-session-bar