Preface¶
After installing a new plugin in the DSH (DeepSeek Harness) desktop version, the client often needs to re-read the latest boot manifest for the new bundle to actually run. The built-in plugin manager can refresh the list, and HMR will also push the new graph when the set changes; however, replacing the bootstrap module still requires a full-page refresh. If you want to avoid closing and reopening the entire application after every dsh plugin add, you need to condense “refreshing the list” and “reloading the page” into a single step. The following section introduces the positioning and usage of the community plugin dsh-refresh.
What is this¶
dsh-refresh is a DSH Desktop Client Plugin (Category: Client) released by maintainer Woeful001. It injects a circular “refresh” icon into the sidebar’s bottom action area, next to the Settings button. Upon clicking, it first refreshes the plugin list via the host plugin manager’s remote interface and then automatically reloads the page, enabling newly installed plugins to take effect without restarting the desktop application.
Repository: https://github.com/Woeful001/dsh-refresh
Community Directory: https://www.skillhub.cn/plugins/Woeful001/dsh-refresh (Independent site, with no official affiliation to DeepSeek / High-Flyer)
Core Functions¶
Verified via the README and package.json, the plugin’s capabilities are as follows:
- Injects a refresh button into the
sidebar.footer.actionslot (UI depends on injection declarations such as@deepseek-ai/dsh-client-ui-*). - Upon clicking, calls
listBundles()andlistPlugins()ofremote.pluginManagerto refresh the remote plugin list. - Executes
window.location.reload()after approximately 200ms; the host re-rendersindex.htmlbased on the currentcordis.patch.ymland activated bundles, and the client re-bootstraps and loads the new client bundle. - Pops up a confirmation dialog to reduce the probability of accidental full-page reloads.
- Supports Chinese / English UI text, following the current locale selection.
The Node-side lib/index.js is a placeholder entry; the logic is concentrated in lib/client.js, registering the client bundle via window.__ModuleLoader__.load.
Why it is needed¶
The DSH desktop application generates a boot manifest based on cordis.patch.yml and installed bundles for every page request. Simply installing a plugin without reloading the page may result in the client still using the old manifest. This plugin merges the built-in “refresh list” and full-page reload into a single click. Even if the remote call fails, the reload itself will re-read the boot graph as a fallback.
Installation and Activation¶
Package Name Note: This plugin’s repository is named dsh-refresh, but dsh-refresh on npm belongs to another plugin (F5 hotkey reload), and dsh-refresh-button is also a package by someone else. Do not execute npm i dsh-refresh or dsh plugin add dsh-refresh. The current version is 0.1.0, which is not published to npm and must be installed from the source directory.
Method 1: Install from Local Path (Recommended)¶
After placing the repository on your local machine, add it under the desktop profile:
dsh plugin --profile desktop add /path/to/dsh-refresh
Replace /path/to/dsh-refresh with the actual path after cloning or extracting on your machine.
Method 2: pnpm link¶
If you need to bypass registry validation, you can install using link in the profile directory:
pnpm --dir ~/.dsh/profiles/desktop add "link:/path/to/dsh-refresh" --config.fetch-retries=0
After linking, you also need to write dsh-refresh into the profile’s dsh.profile.bundles activation list (File location: ~/.dsh/profiles/desktop/package.json).
Method 3: Manually Write to Profile¶
Add dsh-refresh to the dsh.profile.bundles array and ensure dependencies are installed to that profile’s node_modules.
Typical Usage¶
After installation and one page refresh, a circular refresh icon will appear at the bottom of the sidebar:
- Click the refresh icon;
- Confirm in the dialog (to avoid accidental touches);
- The plugin refreshes the plugin list first, then reloads the entire page after approximately 200ms.
For scenarios where the built-in plugin manager already supports “apply and take effect,” this button is a quick access entry; for client plugins installed via CLI or those only visible after a full-page reload, it acts as a one-click “manual restart substitute.”
Compatibility and Dependencies¶
- DSH: 0.2.0-rc.2 Desktop version (
desktopprofile) - Platform:
web(dsh.client.platform) - Environment: Client needs to provide
remoteandremote.pluginManager(available in environments with the built-in plugin manager) - Node: >= 20
- Peer:
@deepseek-ai/cordis ^4.0.2,react ^18.2.0,react-dom ^18.2.0 - License: MIT
Use Cases and Notes¶
Suitable for developers who frequently try installing and debugging client plugins under the desktop profile. The plugin runs with the current DSH process permissions; please review the GitHub Source Code and LICENSE yourself before installation to ensure the behavior meets expectations. Information such as community directory and GitHub stars is based on what is displayed on each site at the time (the directory page marks stars as 0).
Summary¶
dsh-refresh combines “refresh plugin list + full-page reload” into a one-click operation at the bottom of the sidebar, addressing the pain point of not having to restart the entire application after installing plugins in the DSH desktop version. Installation must use a local path or profile configuration; do not confuse it with packages of the same name on npm.
- Directory Page: https://www.skillhub.cn/plugins/Woeful001/dsh-refresh
- Source Code and README: https://github.com/Woeful001/dsh-refresh