dsh-pwa-launcher: Turn Browser PWA Shortcuts into a Real DSH Desktop Launcher

Preface

After installing DeepSeek Harness (DSH) on Windows as an “App” via Edge or Chrome, an icon resembling a standalone software application appears on the desktop or taskbar. Double-clicking it actually executes a browser wrapper command targeting a local address like http://127.0.0.1:3080/; if the dsh web service is not running, clicking the icon will only show an error page. Due to security design, browsers do not allow PWA shortcuts to directly launch local processes, so you cannot rely on the shortcut itself to “start the service upon clicking.”

The community plugin dsh-pwa-launcher (Maintainer: liudapeng0311, Category: Client) takes over this double-click action: it retains your existing icon and appearance but replaces the underlying execution logic with a launcher. It also adds a “Restart | Version” pill to the right of the Web interface session title, used for full-process restarts and dsh self-updates (including rollback on failure). Only supports Windows 10/11, licensed under MIT. The plugin runs with the privileges of the current dsh process; please review the source code and license before installation.

What is this

dsh-pwa-launcher is a web profile plugin for DSH (Package name: dsh-pwa-launcher, version 1.11.0 in current materials). It does two things:

  1. Desktop Side: Identifies and adopts browser-generated PWA shortcuts (configurable to create new ones), deploying launch scripts under %LOCALAPPDATA%\DeepSeekHarness. Upon double-clicking, if the service is not ready, it silently launches dsh web; once ready, it opens the interface in a browser app window.
  2. Web Side: Registers UI in the dsh official extension slot conversation.session.header.utilities, providing restart and version check/upgrade capabilities without modifying dsh core or importing dsh internal packages.

The DeepSeek Harness ecosystem emphasizes “Everything is a Plugin”; the SkillHub Directory Page is a community site and has no official affiliation with DeepSeek or High-Flyer.

Core Features

Double-clicking the icon: Launch service then open window

Before installing the plugin: service not running → double-click → error page. After installing:

Double-click Desktop Icon
Before Install Service not running → Error Page
After Install Service not running → Auto-launch → Interface opens; Service remains running after closing the app window

Key behaviors (from README):

  • Service already running → Open window directly, latency in milliseconds.
  • Port occupied by another program → Pop-up explanation, does not forcibly occupy.
  • Chain Overview: Shortcut → launcher.vbs (no window) → launch.ps1 → Launch dsh web hidden if necessary → Open window with tokenized app URL after HTTP is ready.

Session header “⟳ Restart | Version” pill

The entry is located to the right of the session title when a session exists, on the same line as dsh’s built-in “Open Working Directory in File Explorer”. When the session is empty, dsh hides the entire session header, so the pill is not visible; it will appear after sending a message.

Restart: Full process restart after double confirmation (current tasks/sessions will stop). The window polls for the new service and reconnects; completion criteria include a change in process fingerprint to avoid erroneously refreshing when the old process is still answering ready.

Version: After startup, the host queries the npm registry in the background (read-only) for dist-tags of the default package @deepseek-ai/dsh (currently running version defaults to comparing against @deepseek-ai/dsh-base), monitoring latest / next / alpha. A version selection card pops up if multiple candidates are available. The one-click upgrade flow is: Stop service → Backup → npm install → Verify → Restart; automatic rollback occurs if any step fails. When allowSelfUpdate: false, it only reminds and does not install.

Installation and Activation

This package has not yet been published to npm; it needs to be installed via a direct GitHub source tarball URL (to avoid pnpm SSH resolution triggered by the github: format). Run this in an environment where DSH is already installed:

dsh plugin --profile web add https://github.com/liudapeng0311/dsh-pwa-launcher/archive/refs/heads/main.tar.gz

Restart dsh once after installation is complete (Ctrl+C to stop, then start again). The plugin deploys the launcher and adopts/creates shortcuts when dsh starts; after the first activation, a DeepSeek Harness icon will appear on the desktop or start menu (the name can be changed in config).

If you usually run the Web service manually, you can continue to do so:

dsh web

To pin to a specific version, replace main in the URL with the corresponding tag name.

Typical Usage

Daily: Double-click Desktop Icon

Consistent with the habit after installing a PWA, no extra commands needed; the difference is that it ensures local dsh web availability behind the scenes first.

Uninstall (Do not reverse the order)

Restore shortcuts first, then remove the plugin from the profile:

powershell -File "$env:LOCALAPPDATA\DeepSeekHarness\scripts\shortcut.ps1" -Action Uninstall
dsh plugin --profile web remove dsh-pwa-launcher

If the plugin is removed first, the desktop icon may still point to the old launcher, and no component will refresh it.

Manual Scripts (PowerShell)

Use when not double-clicking, or when only needing to stop the service:

# Launch service only without opening window
powershell -File "$env:LOCALAPPDATA\DeepSeekHarness\scripts\launch.ps1" -NoOpen -Visible

# Stop service
powershell -File "$env:LOCALAPPDATA\DeepSeekHarness\scripts\stop.ps1"

# Re-adopt / Restore shortcuts
powershell -File "$env:LOCALAPPDATA\DeepSeekHarness\scripts\shortcut.ps1" -Action Install
powershell -File "$env:LOCALAPPDATA\DeepSeekHarness\scripts\shortcut.ps1" -Action Uninstall

Configuration

Modify the config of the pwa-launcher line in cordis.patch.yml inside the plugin package; restart dsh to apply changes. If changed in the Settings GUI, the user-layer config will override the patch file.

Common options example:

Key Default Description
shortcutName DeepSeek Harness Shortcut name, also the priority match basis for adoption
adoptBrowserShortcut true true adopts browser PWA icons; false creates new ones
desktop / startMenu true Icon placement locations
browser auto auto / edge / chrome / default
appMode true App window or standard tab
startTimeoutSec 120 Max time (seconds) to wait for service readiness
checkForUpdates true If off, version check and related routes are not registered
allowSelfUpdate true Whether one-click upgrade is allowed
updateChannels [latest, next, alpha] Channel order is conservative → aggressive

See the GitHub README Configuration section for the full key table.

Scenarios and Notes

Who it is for: Users who mainly use the browser “Install as App” feature on Windows to pin DSH, but want double-clicking the icon to be equivalent to “Start Service First, then Enter Interface”, and wish to restart instances or self-upgrade dsh by channel within the Web UI.

Environment Requirements: package.json declares os: ["win32"], engines.node >= 22; non-Windows platforms are not supported.

Permissions & Security: The plugin deploys launchers via PowerShell and may execute npm install to upgrade dsh, both executed with the privileges of the user currently running dsh. Please read the repository source code and MIT license before installation to confirm you accept the behavior of local scripts and network access to the registry.

Troubleshooting: Logs and status files are located at:

%LOCALAPPDATA%\DeepSeekHarness\logs\desktop.log
%LOCALAPPDATA%\DeepSeekHarness\logs\update.log
%LOCALAPPDATA%\DeepSeekHarness\launcher.json

If the version pill shows “Checking…” for a long time, prioritize confirming that checkForUpdates is not turned off, and that GUI settings have not overridden the patch. If the session header has no pill at all, check if there is an existing session, if the page is fully refreshed, and if the console shows errors starting with client-modules:.

Conclusion

dsh-pwa-launcher fills the gap where PWA shortcuts cannot launch local processes: the appearance remains the original desktop icon, but the behavior becomes a usable DSH launcher, providing restart and rollback-capable self-upgrades in the session top bar. For further information and issue feedback, see the SkillHub Directory and GitHub Repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye