Introduction¶
When running multiple sessions simultaneously in DeepSeek Harness (DSH), the common approach is to switch by clicking in the sidebar or relying on window memory. The sidebar list covers “which sessions exist,” but when frequently switching between several conversations in the same window, there’s a lack of an experience similar to a browser tab bar: “which are open in the current window, in what order, and closing a page with one click without deleting the session.” Below is an introduction to the community client plugin dsh-session-tabs (maintainer: thezavtrak-a11y): it adds a tab strip to the top of a single DSH Web window, using browser tab interaction models to manage the sessions “touched” by this window, without patching upstream, integrating via official slots and client services.
What Is This¶
dsh-session-tabs is a client (Web UI) plugin for DeepSeek Harness. Each session touched by this window corresponds to a tab on the tab strip: click to switch, close, drag to reorder, or drag a tab out of the strip to split it into an independent window. Closing a tab does not delete the session—just like closing a browser tab doesn’t delete the webpage, the session remains in the sidebar and can be reopened.
The plugin declares dsh.client and dsh.bundle.patch in its package, registering into official slots, locale, and session-related surfaces. When uninstalling, just remove one loader line; it doesn’t modify upstream code, making it easy to preserve through DSH upgrades.
Core Features¶
Tabs and Switching¶
- Each session displayed in this window occupies a tab, and the order preserves your arrangement.
- Click a tab to switch; if a global panel is already open, clicking first returns to the conversation view.
- The
+on the left of the tab strip creates a new session through the client’s built-in navigation service; the reuse or creation strategy remains the client’s responsibility.
Closing¶
- The
×on the tab, the middle mouse button, or the right-click menu (Close tab/Close other tabs/Close all tabs). - Only closes the tab; the session entity remains in the sidebar.
Reordering and Window Splitting¶
- Drag tabs left and right to reorder; the order is written to this window’s tab list.
- Drag a tab out of the tab strip and release: when the pointer is outside the strip, there will be a hint, and the session opens in a new window; right-click
Open in a new windowhas the same effect, no dragging needed. - When the desktop shell provides
window.dshShell.openSessionWindow, that API is used; otherwise, it falls back towindow.openwith geometric parameters. The new window hands over the session via the URL parameter?dshTab=<sessionId>, which is read by the officialopenSessionon startup and removed withhistory.replaceState.
Restoration and Cleanup¶
- After a page refresh, that window’s tab list can be restored.
- Tabs corresponding to sessions deleted in the sidebar will disappear.
- The tab list of closed windows is cleaned up from storage after 14 days to avoid accumulation.
Status and Accessibility¶
- Pulsing dot: that session is running; green dot: completed and not opened again since then.
- When there are too many tabs, scrolling the wheel on the tab strip allows horizontal scrolling.
- The tab strip is a
tablist, and tabs aretab:Enter/Spaceopens,Delete/Backspacecloses.
Title Bar and Click-Through¶
- If the Shell hands over the window title bar to the page (caption-row mode), the tab strip moves into the title row and aligns with the top of the window; Windows native buttons and Snap Layouts remain available, and colors change with the theme.
- When there is no title bar handover, the tab strip is a normal strip within the page.
- The tab strip starts after the application’s left-side controls and the native window menu; the strip itself is transparent to clicks (only controls receive events), avoiding obstruction of underlying buttons such as sidebar collapse.
Installation and Enablement¶
Same as common DSH plugins, the package contains browser-side and patch loader lines:
# from a checkout, or from a published copy
dsh plugin --profile <profile> add <checkout>
# after that, reload the page once (a NEW row is picked up when the page's module table is built)
Replace <profile> with your profile name and <checkout> with the plugin directory or the path to a published copy. After installation, you need to refresh the page once, as the new loader line only takes effect when the page builds its module table.
The README also provides key points for manual mounting under a profile (commonly used during development): create a junction under $DSH_HOME/profiles/<profile>/, add "dsh-session-tabs": "file:<path>" to package.json, and add id: session-tabs and name: dsh-session-tabs in the insert of cordis.patch.yml. The patch layer supports client HMR; for rollback, just delete the insert line and refresh the page; dependencies and junctions can be retained.
The current package version is 1.0.0, license MIT, and requires Node >= 22 (related to repository script checks, not a hard requirement for DSH runtime).
Typical Usage¶
- Install and refresh the DSH Web page; a session tab strip appears at the top of the window (or inside the title bar).
- Open or create a session in the sidebar; the corresponding tab automatically appears on the strip; click the tab to switch conversations within this window.
- When a tab is temporarily not needed, click
×or use the middle mouse button to close the tab, and reopen the same session from the sidebar when needed. - When comparing multiple sessions in parallel, drag tabs to adjust the order; or drag a tab out of the strip / right-click Open in a new window to view it separately in a second DSH window.
- After refreshing the browser, the tab order of the same window should be restored; multiple windows each maintain different tab sets.
Implementation Key Points (for troubleshooting)¶
| File | Purpose |
|---|---|
index.js |
Host-side empty apply(), for loader mounting and dsh.client scanning |
lib/client.js |
Tab strip, per-window storage, gestures, title bar, window splitting logic |
cordis.patch.yml |
Loader line written when installing the bundle |
The tab strip occupies the Shell’s shell.overlay slot; session identity and selection state come from the Session Controller and workspace navigation service. Per-window state: sessionStorage stores the window id, and localStorage key dsh.session-tabs.v1:<window> stores the tab list; windows opened via ?dshTab= generate a new window id to avoid Chromium cloning sessionStorage causing tab duplication.
Locally, you can run the checks in the README (syntax, node tools/smoke.mjs, etc.) to verify your local copy.
Use Cases and Notes¶
Suitable for: Developers who frequently switch between multiple sessions in the same DSH window and want behavior close to Chrome’s tab bar; scenarios where you need to split a session into an independent window without deleting the session.
Notes:
- The plugin runs with the permissions of the current DSH process and Web client. Before installation, please read the GitHub source code and the MIT license, and assess whether to include it in your profile.
- The community catalog SkillHub plugin page has no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem emphasizes “everything is a plugin.” The descriptions in this article are based on the repository README and package declarations.
- Window splitting depends on the desktop Shell’s
openSessionWindowor the browser’swindow.openstrategy; behavior in non-desktop environments is subject to the actual fallback.
Conclusion¶
dsh-session-tabs extracts “which sessions are open in this window” from the sidebar list into a layer of browser-style tabs: switch, close, reorder, split windows, and closing a tab doesn’t delete the session; it integrates via official client slots, making it easy to upgrade and uninstall. For installation instructions and details, see the catalog page and repository README.
- Catalog page: https://www.skillhub.cn/plugins/thezavtrak-a11y/dsh-session-tabs
- GitHub: https://github.com/thezavtrak-a11y/dsh-session-tabs