Preface¶
When using the Web GUI inside the DeepSeek Harness (DSH) desktop shell to view Chat, click Markdown links, scan @ file references, or browse the right-side file tree, many users instinctively right-click—expecting to “Reveal in Explorer” or “Open in System Browser.” The desktop shell constructs the context menu within the Electron main process and only pops it up in editable areas or when text is selected; if items is empty, the menu does not appear at all. Consequently, right-clicking on links, file references, delivery cards, or project names in the left workspace yields no response. The community plugin dsh-right-click-menu (maintainer SJcun, repo SJcun/dsh-right-click-menu) takes over these right-clicks within the page, reusing DSH’s existing external link navigation and session.openWorkspacePath capabilities without reinventing the wheel.
The following section describes the plugin’s positioning, capabilities, installation methods, and usage notes. 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.
What is this¶
dsh-right-click-menu is a client plugin for the DSH Web surface (dsh.client.platform: web). The host-side lib/index.js has an empty apply, with all logic residing in the browser-side lib/client.js. It listens for right-clicks (context menu events) on the document and pops up menus consistent with the interface language for recognized links, file references, and directories; other right-clicks (input boxes, selected text, etc.) retain native behavior.
The current package version is 0.1.0, licensed under MIT, built and verified against DSH 0.2.0-rc.2 (desktop runtime, Electron Web GUI).
Core Functions¶
The plugin provides different menu items based on the right-click target (text adapts to the current UI language, including a Simplified Chinese dictionary):
| Right-click Object | Menu Items |
|---|---|
| HTTP(S) Links (Chat/Assistant Markdown, inline code URLs) | Open in external browser · Copy link address |
File References (Markdown file links, @path chips, delivery cards, file tree rows, document path labels) |
Reveal in Explorer · Copy file path |
Directories (Left sidebar workspace projects, @folder/ chips, file tree directory rows, file tree titles) |
Open in Explorer · Copy folder path |
The implementation aligns with the product’s own mechanics:
- Open in external browser:
window.open(url, "_blank", "noopener,noreferrer"). This is intercepted by the main process to callshell.openExternal, following the same path as left-clicking a Chat link. - Reveal/Open in Explorer: Uses Session Remote’s
session.openWorkspacePath; directories use{ path }to open the directory itself in the manager, while files use{ path, action: "reveal" }to locate the file. The Host validates the path first; the plugin does not access the file system directly.
The menu uses the shared Menu primitive, ensuring keyboard navigation and themes remain consistent with the main interface. In headless or SDK profiles where there is no browser side, the plugin simply does not function rather than throwing errors.
Installation and Activation¶
Install the package into the profile serving that GUI. Using the plugin manager is recommended, as it adds dependencies and writes the bundle to the profile’s dsh.profile.bundles simultaneously:
plugin_manager install_bundle target: <spec>
<spec> can be a registry package name, a Git address (e.g., github:SJcun/dsh-right-click-menu), a tarball, or a local path. This package is distributed via the repository, not published via npm.
Manual operation is also possible: run pnpm add <spec> in the profile directory, then append the package name to dsh.profile.bundles in the profile’s package.json.
The host side loads on the next Host restart (immediate effect if config HMR is enabled); the browser side takes effect upon the next page load. You can use the repository’s npm run check:live to compare against the running Host’s bundle revision. The default address is $DSH_WEB_URL or http://127.0.0.1:19387.
To disable: set disabled: true for the right-click-menu entry in the profile’s cordis.patch.yml, or remove the bundle from dsh.profile.bundles.
Typical Usage¶
After installation and refreshing the Web GUI, no additional configuration is required. Simply self-test according to the verification steps in the README:
- Right-click an HTTP(S) link in a Chat message → “Open in external browser” should appear, and the link opens in the system browser.
- Right-click an
@referenced file, delivery card, or right-sidebar file tree row → “Reveal in Explorer” should appear, and the file is selected in the Explorer. - Right-click a workspace project name in the left sidebar → “Open in Explorer” should appear, and the directory opens in the Explorer.
- Right-click the message input box or selected text → The native menu appears as before.
For development or troubleshooting DOM recognition issues, you can run npm test (node test/detection.test.mjs) in the plugin source directory. The test cases cover the detection logic for various interface markups.
Use Cases and Notes¶
Who it is for: Users who frequently operate local paths via links, file references, and the workspace sidebar within the DSH Web GUI and desire right-click behavior consistent with system habits.
Compatibility: The plugin declares peer dependencies such as @deepseek-ai/dsh*; DSH will refuse to load on unverified versions to prevent menu and DOM mismatches. The detection logic relies on DSH DOM markers that are not public APIs (concentrated in filePathOf within lib/client.js). If the menu fails after a major version upgrade, run npm test first to locate the interface elements.
Known Limitations (from the upstream README): Markdown file links rendered as images where the label is not a path may not be recognized; no menu is provided when the sidebar “Ungrouped” bucket id is empty; app-internal browser tabs retain native right-clicks; workspace-relative Markdown links are resolved against the main view Session’s cwd, so cross-workspace links may be located inaccurately.
Security and Permissions: The plugin runs with the permissions of the current DSH Host / Session, and paths are validated by the Host. It is recommended to read the GitHub source code and the MIT license before installation to ensure compliance with your environment policy.
Conclusion¶
dsh-right-click-menu uses a minimal client bundle to supplement right-click capabilities for links and path-like elements in the Web GUI, while deliberately not interfering with native editing and copy menus. Directory page: SkillHub — dsh-right-click-menu; Source code and detailed instructions: github.com/SJcun/dsh-right-click-menu.