Introduction¶
In DeepSeek Harness (DSH), the left sidebar lists workspaces and sessions. To rename or delete a workspace, or to open the directory in VS Code or File Explorer, you previously had to click the “…” menu at the end of the row; there was no unified entry point for other operations. This article introduces the community plugin dsh-sidebar-context-menu: it adds a context menu consistent with the official style when right-clicking on a workspace row, and adds capabilities such as “Open in New Tab” (requires dsh-project-tabs).
What is this¶
dsh-sidebar-context-menu is published by the maintainer miao-ge and is categorized as a client-side plugin. It mounts a context menu on the workspace rows of the DSH left sidebar, reuses the official rename and delete workflows, and opens VS Code (new window) and Windows File Explorer locally via host-side interfaces. The plugin is released under the MIT license, and the package version in the current documentation is 0.2.0.
The official DSH workspace UI package lacks a menu slot at the “workspace row” level. This plugin intervenes without modifying the built-in package by capturing the contextmenu event in the Web client and identifying ProjectRowItem using data-row-key combined with React fiber; the menu component comes from the Menu in @deepseek-ai/dsh-client-ui-primitives.
Core Functions¶
The right-click action applies only to real workspace rows (where data-row-key is prefixed with workspace:); this menu will not pop up for session rows or ungrouped areas, and the right-click behavior in other areas is unaffected.
| Menu Item | Behavior |
|---|---|
| Rename | Same as the original “…” button, opens the official rename dialog |
| Delete Workspace | Same as the original “…” button, opens the official delete confirmation dialog |
| Open with VS Code | Executes Code.exe --new-window <path>, opens a new window without occupying the current DSH window |
| Open in Explorer | Host executes explorer.exe <path> to navigate to that directory |
| Open in New Tab | Only appears if dsh-project-tabs is installed; opens that project in a new tab |
The original Rename and Delete options within the “…” menu have not been removed; this simply adds a right-click path.
Environment Note: “Open in Explorer / VS Code” is handled by the host POST /dsh-sidebar-context-menu/open and only accepts local loopback calls. The VS Code launcher prioritizes the environment variable DSH_SCM_VSCODE, followed by the registry and common installation paths; if the first code.cmd on the PATH points to Cursor, you can specify the target executable via DSH_SCM_VSCODE. To troubleshoot, use browser F12 to view the command logs actually used by the host.
Compatibility: The author has verified the workspace row props and host registration contract against the dsh-client-ui-workspace of DSH 0.2.0; since 0.2.0, workspace rows include data-row-key="workspace:<id>", facilitating pre-filtering. The plugin is only effective in the browser-side Web client (the desktop version uses the same client); the VS Code extension mrtsels.dsh-for-vs-code uses its own bundled UI and does not read profile plugins.
Installation and Activation¶
Recommended: Use the dsh built-in plugin installer (Desktop profile):
dsh plugin --profile desktop add dsh-sidebar-context-menu
On the desktop, you can also operate via the UI: Left Sidebar “Plugins” -> “Add Plugin” -> Enter package name dsh-sidebar-context-menu -> Install -> Enable immediately.
Install from Source (For Development): Execute in the repository root directory (installs into the desktop profile by default; for the browser version, add -Profile web, for both, use -Profile both):
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\install.ps1
The installation script creates a junction publish point pointing to the source code on the C drive and writes to dsh.profile.bundles, avoiding link: resolution failures across drive letters under pnpm 10. After completion, restart the desktop client or hard refresh the page (Ctrl+Shift+R). Uninstall: .\scripts\install.ps1 -Uninstall, then restart and hard refresh.
The plugin runs with the current dsh process permissions; please review the GitHub repository source code and MIT license before installation.
Typical Usage¶
- Complete installation and enable the bundle via the command above or the UI.
- Restart the DSH desktop client, or hard refresh the Web client.
- Right-click on the workspace row in the left sidebar (not a session row, not an ungrouped title).
- Select from the official-style menu: Rename, Delete Workspace, Open with VS Code, Open in Explorer; if dsh-project-tabs is installed, “Open in New Tab” is also available.
Relationship with Workspace Data (unrelated to the plugin but easily confused): “Delete Workspace” only deletes the registration and session grouping relationships in ~/.dsh/storages/workspace.json, and does not delete the disk directory or session logs; sessions will enter “Ungrouped” and can be dragged back after re-adding the workspace for the same directory.
Scenarios and Precautions¶
Suitable for: Developers who frequently switch between multiple local workspaces in the DSH left sidebar and want to quickly rename, delete registrations, or open project directories in a VS Code new window or File Explorer with one click; when used with dsh-project-tabs, you can open a new tab from the same menu.
Notes:
- It relies on React 18/19’s
__reactFiber$on the DOM to identify workspace rows; if identification fails after a major DSH version upgrade, the right-click will silently fail, and the plugin needs to be adjusted according to the new version’s UI structure. - If the profile is reset, all plugins are disabled, or the junction becomes invalid due to directory movement, you need to rerun the installation script or
dsh plugin addagain. - The Ungrouped section has no workspace entity, so there is no context menu; this is expected behavior.
Links and Extensions¶
- Community Directory Page: miao-ge/dsh-sidebar-context-menu
- Source Code and Full Description: GitHub — miao-ge/dsh-sidebar-context-menu
- Companion Tab Bar Plugin: dsh-project-tabs
The DSH ecosystem emphasizes “Everything is a Plugin”; community directories like SkillHub are independent sites and have no official affiliation with DeepSeek or High-Flyer. This plugin supplements the operation entry point for the left workspace row, without changing DSH’s underlying semantics for workspace and session data.