Preface¶
In DeepSeek Harness (DSH), the host process is responsible for versions, plugin lists, and installation actions, while what the user sees is often the page UI within the WebView. If every change involving “check for updates, install plugins, restart” required recreating the native window, the cost would be high and maintenance difficult. The dsh-plugin-desktop-updates maintained by desanv01 turns this capability into a client plugin: the sidebar entry, the full-screen Updates panel, and the Updates section in Settings are all mounted on the existing Harness Web UI. It reads and writes state and executes operations via the window.__dshDesktop bridge injected by the desktop application.
It is necessary to distinguish the environment beforehand: the README states that this plugin targets desanv01/deepseek-harness-desktop-app (this desktop app is archived), which bundles the DeepSeek Harness 0.1.5-rc.x runtime. The official DeepSeek Harness desktop client comes with its own plugin management and update views and does not expose __dshDesktop. In the official app, the plugin will still register UI slots, but it will truthfully indicate that the bridge is unavailable rather than pretending the panel is functional.
What is this¶
- Name:
dsh-plugin-desktop-updates(npm package name is the same) - Maintainer: desanv01
- Category: Client-side (Web UI)
- License: MIT; current release version 1.3.0 (subject to npm / package.json)
- Positioning: Renders the Updates and plugin management interfaces for the aforementioned Windows desktop Harness application. Data and actions are driven by the application’s native bridge; the plugin itself does not read Config.
Community directory page: SkillHub Plugin Entry. Source code and instructions: GitHub Repository.
Core Features¶
The following capabilities are derived from the “What it does” section and slot descriptions in the repository README.
- Sidebar entry next to Settings (56px rail icon + label): Opens the Updates panel; displays a notification dot if an app build update is available.
- Main Panel (
main): Displays the desktop app version, installed and published Harness versions, and the list of plugins currently running in the home. Provides actions to check, download, install, restart, and repair Harness, as well as enable, disable, install, and remove plugins. - Settings Section: Presents the same information and operations as the panel in a more compact form.
- Registration Visibility: The Shell may silently reject slot registration. The plugin writes registered slots and every rejection to
window.__dshDesktopUpdatesand logs them to the application log; the Updates section will repeatedly display rejection information to avoid “plugin not loaded” and “slot rejected” looking the same. - Degradation without Bridge: When
window.__dshDesktopis absent, it explicitly prompts that the application is unavailable and does not fake a functional interface.
Opening the panel relies on Harness’s ctx.layout.selectPanel, which is a layout action and does not go through the bridge. Therefore, even if the bridge is temporarily unavailable, the panel can still be selected via layout (if the Shell has no corresponding panel slot, the app will fall back to the native update window, consistent with the tray menu behavior).
Slots Occupied by the Plugin¶
| Slot | Identifier | Rendered Content |
|---|---|---|
sidebar.footer.action |
id desktop-updates |
Updates entry next to Settings |
sidebar.panellist |
id desktop-updates |
Sidebar row with the same id as the main panel |
main |
key desktop-updates |
Full-screen Updates panel |
settings.section |
id desktop-updates |
Updates subsection within Settings |
List-type slots require an id, and main requires a key; if either is missing, the Shell will refuse registration.
Dependencies & Requirements¶
- DeepSeek Harness 0.1.x combination with the
layoutservice (the runtime bundled by the aforementioned desktop application). - The host must provide
@deepseek-ai/dsh-client-ui-layout(declared indsh.client.inject). - To enable operations like checking for updates or installing plugins: the target desktop application must inject
window.__dshDesktop.
Installation & Activation¶
The plugin runs with DSH process permissions; please read the source code and MIT license before installation, and confirm that you are using the desktop application that provides __dshDesktop, rather than merely expecting it to be “fully functional” on the official desktop client.
Install from npm to Web profile¶
Execute in PowerShell (command from README):
dsh plugin --profile web add dsh-plugin-desktop-updates
Install into the Harness home bundled with the desktop app¶
The desktop app installs its bundled copy automatically. Within the app, you can specify a package name, git spec, or local directory via Settings → Updates → Plugin Manager; installing from npm will replace the bundled copy. If an installed plugin version is higher than the bundled version within the executable, the app will not force a downgrade to the bundled version on the next startup; to restore the bundled copy, you can use DeepSeekHarness.exe --install-plugin (as per README).
Add from source directory to profile (requires local clone)¶
The local addition method given in the README (excluding the git clone step itself):
cd dsh-plugin-desktop-updates
dsh plugin --profile web add .
The client is a hand-written module-face client.js, requiring no separate build step.
Typical Usage & Troubleshooting¶
No Configuration Options: The plugin does not read Config; the interface content comes entirely from the status reported by the bridge.
Smoke Test: The client can be rendered headless under a fake Shell; the desktop app CI uses tools/client-plugin-smoke.mjs in its repository to load the real client.js and verify slot rules. See deepseek-harness-desktop-app#screenshots for screenshots.
| Symptom | Possible Cause | Direction |
|---|---|---|
| No Updates row in the sidebar at all | Profile lacks the bundle line or no client provided | Confirm cordis.patch.yml is installed; check window.__dshDesktopUpdates in the page |
| Row exists, panel prompts app unavailable | No __dshDesktop |
Use the desanv01 desktop app that provides the bridge |
| Row exists, panel is blank | Bridge exists but did not return status | Check the marker in app logs after each load |
| Panel is normal but no Updates section in Settings | settings.section registration rejected |
Check markers and rejection instructions in the Updates section |
Code Structure (for repository comparison)¶
| Part | Path |
|---|---|
| Host side | index.js (empty apply, for staying in the bundle stack) |
| Browser side | client.js (module-face bundle) |
| Loader line | cordis.patch.yml |
| Registration marker | window.__dshDesktopUpdates |
Applicable Scenarios & Notes¶
- Suitable for: Developers or maintainers using desanv01/deepseek-harness-desktop-app and its bundled Harness 0.1.x environment, who want to manage app updates, Harness versions, and home plugins via a unified Web UI, and need visibility into whether slot registration is rejected by the Shell.
- Not suitable as a general official desktop plugin: The official DeepSeek Harness desktop client already has its own update and plugin management and does not expose the bridge this plugin relies on; installing it there will only result in an honest “bridge unavailable” prompt.
- Ecosystem Note: DSH adheres to “everything is a plugin”; community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-plugin-desktop-updates consolidates update and plugin operations for the Windows desktop Harness into the sidebar, main panel, and Settings. It uses __dshDesktop to align application-side facts and actions, maintaining observability even when the bridge is absent or slots are rejected. For further details and the troubleshooting table, see GitHub README; for the plugin directory, see SkillHub.