anywhere-labs / dsh-plugin-desktop-beta
Desktop Beta integration for the DeepSeek Harness
About this plugin
Written by the registry from verified metadata, not from the README.
dsh-plugin-desktop-beta is a DSH plugin published from the dsh-plugin-desktop-beta package in the anywhere-labs/deepseek-harness-desktop repository.
Capabilities and topics
DSH Desktop Beta
English | 中文
dsh-plugin-desktop-beta runs the Beta channel of DSH Desktop in Electron while remaining part of the ordinary Cordis composition. The installed application is named DSH Desktop Beta. The package provides only the dsh-plugin-desktop-beta executable and the dsh-desktop-beta alias, so it does not conflict with the stable npm package or commands.
The stable dsh-plugin-desktop package and this Beta package can be installed on the same machine. They use separate application names, system identities, shortcuts, single-instance locks, and Electron user-data directories. Both intentionally use the same DSH_HOME (or the default ~/.dsh), so profiles, settings, plugins, and sessions are shared. Simultaneous installation is supported; reliable simultaneous execution is not, because both applications can contend for shared profile files, ports, and dependency state. Automatic updates stay on the Beta channel; the tray provides an explicit action that installs the stable edition alongside Beta.
Architecture
The Electron executable is minimal bootstrap code. It acquires the single-instance lock, resolves the selected DSH profile, provides the native runtime capability, and boots the Host Cordis root in the Electron main process. The desktop-shell Host plugin owns the BrowserWindow, navigation policy, settings namespace, and close-versus-quit lifecycle through Cordis effects. The native runtime owns the physical tray, while desktop-shell, desktop-profiles, desktop-terminal, and desktop-updates contribute effect-scoped commands through its ordered item registry.
All three presentation modes reuse the existing Web carrier. The profile mounts the ordinary dsh-base and dsh-web-app bundles. By default, the Host binds its HTTP and WebSocket surface to 127.0.0.1 on an ephemeral port; an explicitly confirmed LAN setting binds all interfaces, while Electron continues to load the loopback same-origin page in a sandboxed renderer. There is no Electron-owned plugin roster, preload bridge, or raw Electron API in the renderer.
The desktop package has normal Host and Web Client faces. Its Client face validates the Host-supplied mode, platform, and capability-gated material markers in every mode. Compatibility places the unchanged official presentation below an independent Desktop frame. Extended mode replaces the official root layout with its own Desktop-owned layout and sidebar surface while continuing to host the official sidebar, conversation, and details occupants. Enhanced mode retains a separate root registration and the compact internal-caption geometry established by the original enhanced implementation. Third-party Web clients continue to use the ordinary DSH module graph in every mode.
The tray profile selector lists existing profiles and the lazily available desktop and web defaults. A selectable profile directly composes dsh-base before dsh-web-app; headless, malformed, or already desktop-embedded profiles remain visible but disabled. desktop is the only launcher-managed profile: its installation-owned prefix is repaired while third-party bundle order is preserved. Every other selected profile keeps its manifest, user patch, and dependencies unchanged. The launcher inserts its own desktop layer after dsh-web-app for the active generation and never persists that layer in the selected bundle list.
Profile selection is desktop-owned state under Electron user data, not another field inside a selected profile. An accepted switch persists the exact active profile and takes effect through an orderly restart. Startup never substitutes a last-known-good profile or automatically mutates configuration after failure. Instead, every healthy startup records one of three rotating checkpoints containing the active Profile's declarative package and patch files together with the shared Harness-home settings.yaml and cordis.patch.yml. Recovery always opens the Recovery page and requires the user to choose an exact slot; after a restore, the next healthy startup deliberately skips checkpoint replacement once. Version-two slots remain restorable but affect only their five original Profile files. Credentials, .env, sessions, storage, caches, and generated dependency state are never copied into these checkpoints. Official profiles use the same DSH home for sessions, settings, and storage by default, so switching does not copy or migrate records outside an explicit checkpoint restore. A custom profile patch may deliberately redirect one of those persistence roots.
Before Loader entries mount, the launcher registers the generation-scoped ctx.desktopProfiles service. Its immutable current value contains the active profile's name and absolute dir; list() performs read-only discovery, while select(name) serializes persistence-before-restart switching without changing the live generation in place. The service is a Desktop Host capability, not a renderer bridge or an active-profile API supplied by current upstream DSH.
Bare Cordis plugin imports resolve from the persistent profile. A narrow Node resolve hook applies only to imports issued by @deepseek-ai/cordis-plugin-loader, so profile-local third-party packages and the healed launcher fallback use the same resolution path even when packaged Electron does not expose Node's internal ESM loader.
The Host also registers the official pluginPackages service over the same resolver, without the official runtime interception. Official consumers such as the plugin manager, plugin inventory, and typert loader therefore read component titles, descriptions, and icons through the official metadata reader, and package lookups from the profile receive the package the Loader imports rather than a stale copy above the profile. After an official package operation, refresh() re-selects packages for later imports; loaded modules are not reloaded.
Before profile preparation and Cordis boot, a packaged macOS or Linux launch runs the configured account shell in interactive login mode and recovers its exported PATH. This repairs the minimal PATH commonly supplied by Finder, LaunchServices, and other graphical launchers. It also fills only missing locale, toolchain, package-manager, and virtual-environment exports from a fixed allowlist; PATH alone always uses the shell value. Recovery supports absolute zsh, bash, and fish paths. Bash follows its standard login behavior, so .bashrc contributes only when a login profile sources it. Windows and unpackaged or development launches skip recovery. An unavailable or unsupported shell, timeout, capture failure, or missing PATH silently retains the inherited process environment.
The capture starts from @deepseek-ai/dsh-subprocess's scrubbedParentEnv(), and captured names pass the same SENSITIVE_ENV_PATTERN and DSH_ENV_PREFIX checks before the fixed allowlist is applied. Credentials, DSH_* values, proxy and SSH-agent settings, and process startup hooks learned only from shell rc files are therefore not imported into Electron. This recovery does not erase values already present in Electron's explicit launch environment. Ordinary DSH subprocesses apply the official scrub again; an explicit child environment may still deliberately add a value.
After login-shell recovery, the launcher creates the layered launch-environment snapshot. It then prepends a private command directory containing only the pinned bundled pnpm command to the current Electron main process PATH. Host and third-party plugins can therefore discover that package manager from startup, including through ordinary DSH subprocess providers, without requiring a system Node.js installation. This ambient path is a compatibility surface, not the formal plugin-management contract.
The desktop-pnpm Host row provides one package-manager capability against the immutable active profile: ctx.desktopPnpm.run(argv, signal?). It executes the packaged pnpm entry directly with the active Profile directory as cwd. Every Desktop-owned pnpm operation process-locally applies exactly one --config.minimumReleaseAge=0 at the final package-manager boundary; it never rewrites the user's pnpm configuration. Callers own the remaining command construction, Profile bundle reconciliation, receipts, validation, and user-facing progress. Desktop deliberately adds no plugin-specific retry, snapshot, or rollback to this interface; all recovery is handled by the three healthy-start checkpoints.
run() returns live stdout and stderr streams, a done promise that settles after the complete process tree exits, and cancel(). One operation may run per generation. The service uses the ordinary DSH subprocess provider, the exact packaged JavaScript entry, shell-free argv, and child-scoped DSH home, Electron-backed Node, CI, and native-module ABI values. The public runtime path still does not expose node or dsh; its private helper and the ELECTRON_RUN_AS_NODE and npm ABI variables exist only inside package-manager subprocess trees. The launcher does not modify the system PATH, shell startup files, profile configuration, or .env documents.
Plugin authors should use the supported contract imports, lifecycle rules, and adaptation patterns in the Desktop plugin service architecture.
Mode setting and restart boundary
The dsh-desktop.mode field in the DSH home settings.yaml document is the single source of truth:
dsh-desktop:
mode: compatibility # compatibility, extended, or advanced
macosMaterial: transparent # off or transparent
The launcher reads the same file resolved by the active @deepseek-ai/dsh-settings-file row before composing a generation. The Host registers the dsh-desktop namespace with the standard settings service. There is no parallel mode value in the profile manifest.
Users can select the other mode from the tray or edit the DSH home settings.yaml document by hand. The tray updates the registered dsh-desktop settings namespace, while a manual edit changes the same file observed by the settings provider. A committed change requests one orderly restart: the current Cordis tree disposes first, then Electron relaunches only after a successful zero-code shutdown. The application never hot-swaps root slots, native window materials, or Loader rows inside a live renderer generation.
Linux supports compatibility mode only. Its tray mode command is disabled, and custom-window values are rejected rather than silently falling back.
Compatibility mode
dsh-desktop.mode defaults to compatibility. On macOS and Windows it creates an independent 36 CSS-pixel Desktop frame, with native traffic lights or caption controls, above the official Web surface from the active DSH profile. The centered identity, mode pill, drag region, and icon actions belong only to that frame. The complete official page begins below it and does not participate in its layout or safe-area calculation. Linux keeps the ordinary native-frame fallback.
The desktop Client module validates the mode and platform markers, registers only the independent frame overlay and its fixed launcher actions, and performs no official presentation replacement in compatibility mode. It does not provide or replace the layout service, register a root or sidebar occupant, or change the conversation surface. Desktop-owned boot-health reporting is a capability effect; compatibility mode still preserves the selected profile's own layout, sidebar, and conversation composition, so the ordinary desktop and web profiles keep the official rows unchanged. Upstream dialogs remain content overlays and are bounded below the Desktop frame.
The Cordis row registers native window values during profile activation. The launcher creates the window only after app-boot settles and audits the complete profile, so the first renderer manifest includes the active official, desktop, and third-party client plugins without a Loader-wide wait inside the plugin itself.
On Windows, the launcher pins the browse directory-picker backend and keeps the full in-app directory panel. The desktop build patches that panel with a small system-folder icon whose same-origin route calls Electron's dialog.showOpenDialog; a selected path returns to the panel's existing workspace-adoption flow, while cancellation leaves the panel open. Ordinary browser and remote launches do not receive the desktop bridge. macOS and Linux retain the upstream adaptive chooser.
This alpha runtime migration does not carry the Desktop-owned Workspace folder-drop behavior or the chat-attachment drag-isolation patch. Use the ordinary Workspace selection flow while those interactions are re-evaluated against the alpha Client UI.
Windows PowerShell keeps the upstream pwsh-sandbox behavior and Windows ACL confinement in every presentation mode. The launcher generation replaces only that Host provider with the dsh-plugin-desktop-beta/windows-pwsh-sandbox subpath from this same package. For the exact upstream ACL-runner argv, the adapter launches the packaged Electron executable in Node mode through a private trampoline. After validating the exact upstream runner and before importing it, the trampoline removes the Node-mode variable and ensures that its otherwise consoleless Windows process owns a console without a window: Windows 11 24H2 and later allocate one directly, and earlier versions attach to the windowless console of a short-lived unrestricted cmd.exe; only if both fail does it allocate an ordinary console and hide it. The restricted PowerShell process can then inherit that console instead of creating one while already running under the restricted token, and no console window is handed to Windows Terminal. Console allocation failure exits through the existing signed runner-failure path, and all ACL policy and subsequent failure handling remain delegated to the upstream runner. The desktop deploy root also retains its Yarn patch that combines STARTF_USESHOWWINDOW with the existing STARTF_USESTDHANDLES and SW_HIDE on both native restricted-process paths. It does not use the upstream-incompatible CREATE_NO_WINDOW or CREATE_NEW_CONSOLE flags. Direct danger-full-access PowerShell, macOS, and Linux execution are unchanged; there is no automatic unrestricted fallback when Windows confinement fails.
Extended window mode
Extended mode disables the official upstream ui-layout root and installs the Desktop-owned root layout. That layout owns the sidebar, conversation, details, overlay, and resize geometry while continuing to render the official sidebar, conversation, and details slot occupants. A fixed 36 CSS-pixel command bar sits above that Desktop root. The command bar and Desktop-owned sidebar surface reveal one non-stacking material layer, forming a continuous inverted-L glass surface; the conversation surface sits inside the L with a 10-pixel rounded inner corner whose separator follows the curve.
The centered product title and mode pill remain independent from the action group. First-party actions use compact icons: macOS places them on the right, opposite the traffic lights, while Windows places them on the left, opposite the native caption controls. They open the DSH Terminal, a restart menu for ordinary or recovery-mode restart, or a developer menu for reloading the renderer and toggling detached Developer Tools. These exact actions cross the private same-origin launcher boundary; no raw Electron or arbitrary command interface is exposed to the page.
The command bar remains visible and draggable while upstream overlays are open. macOS traffic lights and Windows caption controls keep their native hit regions; only Desktop-owned first-party icons render in this private surface, explicitly opt out of dragging, and remain clickable. Web Client plugins cannot contribute command-bar actions in compatibility or extended mode.
Editable areas in the application document, the Desktop command bar, and Desktop-owned local windows show the same native right-click menu as the official Desktop: Undo, Redo, Cut, Copy, Paste, and Select All without shortcut labels, with availability reported by Chromium. Selected read-only text offers only Copy. Windows labels follow the Desktop language; macOS and Linux use the native role labels.
The DOM declares the command bar as the Desktop frame and the shifted upstream root as its content viewport. The shell.overlay layer becomes the containing block for fixed plugin surfaces, while dialogs portalled directly to body receive the same content offset. Both paths are therefore bounded below the 36-pixel frame instead of darkening or intercepting it.
Custom-window material is independent from mode. macOS offers Off and Transparent. Windows has no material choice, so every Windows window is an ordinary opaque window. The removed windowsMaterial values acrylic and mica stay readable so older settings still boot, and both resolve to off. Changing mode or material performs an orderly restart.
Enhanced mode
Enhanced mode is an explicitly composed desktop presentation for macOS and Windows. After all user patches have been read, the launcher disables the official ui-layout Loader row, keeps the official ui-sidebar and ui-conversation rows enabled, and applies the selected mode to desktop-shell.
The desktop Client provides the immutable desktopWindow native-geometry service in all presentation modes. Enhanced mode has its own Cordis effects, layout service, and root slot registration; it does not install the independent compatibility/extended frame. Its root declares seats for the unchanged upstream sidebar, conversation, details, and overlay contributions. The official sidebar remains the sidebar occupant and continues to declare the workspace browser, settings shell, and additive footer-action seats. This preserves its component behavior, collapse animation, and third-party extension points while the desktop package owns only its compact internal-caption geometry and native material.
The enhanced theme presenter projects the active upstream theme snapshot onto the document, including color scheme, resolved token values, dark-mode marker, and theme-color metadata. It subscribes to ordinary theme changes and removes only its own projected state when the generation disposes.
For an enhanced generation, the Electron adapter also reads the registered ui-theme.preference after Host boot and mirrors its built-in light, dark, or system value into Electron's native appearance before constructing the window. Committed preference changes update the native material while the window is active, and disposal restores the preceding Electron appearance. Client-only third-party theme ids do not change this Host preference.
The desktop sidebar surface scopes the upstream sidebar-fill token to transparent, so the official sidebar and session-list fade reveal the native material without changing their component styles.
On macOS the enhanced window uses its original hidden-inset geometry: traffic lights at x=16, y=16, a compact 20 CSS-pixel content inset, and a 32 CSS-pixel native drag region. Its 90 CSS-pixel collapsed column centers the official 56-pixel rail below that compact inset, while optional native sidebar vibrancy remains available. Buttons, links, inputs, editable fields, menus, tabs, switches, dialogs, and explicit .dshDesktopNoDrag contributions remain interactive through precise app-region: no-drag exclusions. On Windows the official sidebar keeps compatibility geometry: 56 pixels collapsed, 280 pixels by default when expanded, and the same upstream transition behavior, while its transparent surface reveals the selected supported material. The enhanced window keeps its original 32 CSS-pixel internal caption row and native overlay controls; this geometry is independent from the 36-pixel compatibility/extended frame. Linux rejects enhanced mode rather than silently falling back to a presentation different from the persisted setting.
Development
This package is managed by the Yarn workspace at the repository root. The sibling deepseek-harness/ checkout remains an independent upstream pnpm project and is not part of the Yarn workspace. Install and verify DSH Desktop from the repository root:
yarn install
yarn check
The check verifies that every required first-party peer in the production graph is declared by the desktop deploy root. Headless Loader smokes activate the launcher-owned desktop row and a profile-local third-party row, then boot the published Web profile and inspect its loopback root and client manifest. Unit and type tests cover both profile compositions, restart fencing, client environment validation, desktop layout state, and platform-native window options.
Start the desktop application explicitly when a graphical session is available:
yarn dev
dev builds before launching. It does not require a separate manual build. dev and start also prepare the bundled interpreter payload under .desktop-build/runtime before the shell starts, as upstream Desktop's development launcher does, so the Office skills are available in development; the first launch downloads the archives and wheels the upstream lock pins, and yarn prepare:runtime runs that step alone.
The headless-safe launcher surfaces can be exercised without importing or starting Electron:
node lib/bin.js --help
node lib/bin.js --version
Plugin workflow
Manage any profile with the ordinary DSH command:
dsh plugin --profile desktop add third-party-plugin
dsh plugin --profile desktop remove third-party-plugin
dsh plugin --profile desktop update
The application starts with desktop by default. Choose another Web-capable profile from the tray's Profile submenu; switching profiles restarts the application. The generated DSH terminal defaults bare commands to the currently active profile, so the shorter forms below modify that profile directly:
dsh plugin add third-party-plugin
dsh plugin remove third-party-plugin
dsh plugin update
An explicit --profile <name> remains authoritative and is useful for preparing another profile before selecting it.
OAR subagents. The Plugins page lists OAR subagents below Computer Use (Next). Its switch, off by default, enables the official @deepseek-ai/dsh-experimental-subagent-oar provider, which Beta ships as an optional bundle composed as in the provider README's example, except for Claude Code's permission mode: Codex starts with -c sandbox_mode="workspace-write" and Claude Code with --permission-mode acceptEdits --permission-prompts none, so both can change files in the task's directory. Claude Code refuses any other action that would ask for approval, such as most shell commands, unless its own settings pre-approve it (permissions.allow); the example's dontAsk would keep it read-only. The subagent_oar tool lets the model hand one standalone text task to either of them. Each task runs the Codex or Claude Code CLI installed on this computer with that CLI's own sign-in and settings, so install and sign in to it first. These processes run outside DSH's command sandbox, and their native approval requests never reach DSH. The card's title opens the official plugin page with the bundle's three rows. On that page each provider row's configure control opens its launch choices: read only, edit files (the default), auto review or bypass permissions for Claude Code, and read only, workspace write (the default) or full access for Codex. Saving records the choice in the current Profile's patch through the official configuration editor, which restarts that row, so tasks delegated afterwards use it; choosing the default again removes the override. A row must be running to change. The release ships the provider as a plain package; patches/dsh-experimental-subagent-oar@<version>.patch adds the bundle declaration to the installed package.
Official Computer Use. dsh 0.2.2 adds the official Computer Use bundle, @deepseek-ai/dsh-cua-bundle (macOS only). Since 0.2.2-alpha.3 its release no longer ships the bundle: the plugin manager offers it from the official catalog and installs it on demand into the current Profile, and Beta does not ship it either. The catalog entry hides the bundle, so patches/dsh-official-bundles@<version>.patch lists it. On macOS, Plugins then shows it as not installed, like the official Codex and Claude Code subagents, and switching it on downloads and installs it, together with the helper application its release builds, signs and notarizes. Other platforms keep it hidden. The computer-use registry row and the provider row share the computerUse: computer-use-next isolation realm, so the official bundle can mount its own registry beside them. That official provider serves PTC Sessions. In every Session it serves, Computer Use (Next) withholds its tools, its guidance and the /computer-use command. The command returns without a restart once the official provider stops serving that Session, for example after the Session switches to another mode or the official bundle is switched off. Other Sessions, Windows and Linux, macOS before 14, where the official helper cannot start, and Sessions without a loaded official provider keep Computer Use (Next), which runs on macOS, Windows and Linux. The Computer Use (Next) plugin page carries a macOS Computer Use row with a switch for the official bundle; switching it on installs the bundle first while the Profile lacks it. That switch works only on macOS 14 and later; elsewhere it stays off and cannot be changed. While the bundle is on, the row opens the bundle's own page in Plugins. The modules and specs live below src/upstream-family/ and tests/upstream-family/.
On-demand bundles after an update. The official Codex and Claude Code subagents and the official Computer Use install on demand into the Profile, pinned to the DSH release that installed them. pnpm places the DSH packages they depend on at the top of the Profile's node_modules, where the runtime resolver prefers them to the installation's own. After an update to another DSH release, core plugins would load those old copies, so the subagent tools disappear or the Host fails to start, and the bundles themselves no longer match the release. Before the Host resolves the Profile, Beta therefore removes on-demand bundles installed for another release with the bundled pnpm, offline, as removing them in Plugins would, and logs which ones it removed. Plugins then shows them as not installed; switching one on installs the current release. A failed removal is logged, the Host starts anyway, and the next start retries.
dshmarket@1.2.3 is not preinstalled and is not a dependency of DSH Desktop. That release still resolves a profile from config/argv and starts dsh plugin through private child-process code; it neither reads desktopProfiles nor uses desktopPnpm, and its package exports no runner injection seam. A later compatible release must detect the Desktop services dynamically and retain its existing CLI fallback under ordinary DSH. In addition, the 1.2.3 source repository and npm tarball contain no complete MIT license text or copyright notice, so that version does not pass the bundled-redistribution gate. User-directed installation of a third-party package is separate from Desktop embedding it in the application archive or installer.
See Plugin services for authors for required injection, optional Desktop adaptation, TypeScript examples, cancellation, and fallback guidance.
The package can then be launched from npm with:
npx dsh-plugin-desktop-beta
Launching from the command line
The package installs two equivalent Beta-only commands, dsh-desktop-beta and dsh-plugin-desktop-beta. Both launch the packaged Electron launcher (lib/main.js) when invoked without arguments.
- Global install —
npm install -g dsh-plugin-desktop-betainstalls theelectronpeer automatically, anddsh-desktop-betathen starts the application against the shared default DSH home:dsh-desktop-beta - Inside a profile — after
dsh plugin --profile <name> add dsh-plugin-desktop-beta, the command lives in the profile'snode_modules/.bin. pnpm does not install theelectronpeer automatically; add it when you want the command to launch:
Native build approvals (node-pty, koffi, electron, and others) follow pnpm's usualdsh plugin --profile <name> add electronallowBuildsrules. - Electron missing — the command prints a short installation guide instead of failing with a module error.
Booting a profile that is composed with the desktop shell under an ordinary dsh invocation (without the launcher's desktopRuntime service) prints a reminder telling you to start it with dsh-desktop-beta or from the packaged application; the shell registers nothing in that case.
A third-party Host plugin only needs its normal dsh.bundle patch. A plugin with browser UI also publishes the normal dsh.client metadata with platform: "web" and an exported ./client artifact. The upstream Web client module graph discovers it in every mode; Electron does not require a separate client build or a desktop-specific registration API. Enhanced-mode contributions must target services and slots that exist in that explicit composition rather than assuming the official layout or sidebar occupant owns them.
Desktop operations
When the Desktop window is unfocused, a direct user turn that reaches completed raises a native completion notification; error and max-tokens endings raise a needs-attention notification. Completed and failed background jobs use the same native attention path. Aborted, blocked, interrupted, killed, plugin-initiated, continuation-only, mismatched, and subagent activity stays silent. Clicking a notification reveals and focuses the window. macOS and Linux increment the application badge, while Windows flashes the taskbar button; showing, focusing, or releasing the window clears that attention. The live dsh-desktop-notifications settings namespace provides independent notifyOnTurnCompletion, notifyOnTurnFailure, notifyOnJobCompletion, and notifyOnJobFailure switches, all enabled by default. Notification text is deliberately generic and never includes prompts, responses, errors, job labels, commands, paths, session IDs, model or provider names, tool data, or output.
The official account plugin's top-up and usage actions (the first-run credit step, the out-of-credit notice and Settings → Account) open the DeepSeek Platform page in an Electron WebContentsView over the main window, as the official Desktop does. The Host passes the signed-in account's Platform grant to the main process over private IPC; only the page's own sandboxed preload, at the Platform origin, receives the token. Payment and other external links open in the system browser. Each account has its own storage partition, whose sign-in data (cookies, IndexedDB, caches and service workers) is cleared whenever the page closes and when the application quits.
The official context menus of images and files offer Copy image, Download and Save as… through native file actions that accept only the main application frame. Download reserves a unique name in the Downloads directory, Save as… opens the native save dialog there, and completion returns the destination path so the menu's notice can reveal the file through the existing Host path-opening API. Both use Chromium's URL download, and a private URL fragment keeps them apart from Desktop's own Host route downloads. DSH_DESKTOP_FILE_DOWNLOAD_TIMEOUT_MS bounds startup until Chromium creates the download (300000 ms); the native save dialog has no application deadline, and a download that a network error interrupts fails at once instead of waiting for a resume. Copying a cross-origin image reads it in the main process through Chromium's network stack in an in-memory session, so it follows the system proxy and certificates like the window showing the image. These reads omit credentials, validate every redirect, reject the application Host and its loopback aliases, stop on main-frame navigation, and use DSH_DESKTOP_IMAGE_READ_TIMEOUT_MS (30000 ms) and DSH_DESKTOP_IMAGE_READ_MAX_BYTES (67108864 bytes). The renderer then converts the image to PNG for the Clipboard API.
Dragging an image out of a conversation or the document preview delivers a file through Electron's native drag, as the official Desktop does; only the main application frame may prepare or start one. A workspace image its Session may read is lent in place: the Host authorizes it through its composed filesystem and returns its path, size and SHA-256 over the private Host IPC channel, so the renderer never names a path, and the main process checks the digest again and confirms the file is unchanged before the drag starts. Other images, and workspace files the Host does not lend, are copied to a private temporary directory, 64 MiB in total at most; a delivered copy stays readable for 60 seconds, and every copy is removed when the application quits. Cross-origin images whose servers send no CORS headers keep Chromium's own image drag.
Packaged macOS and Windows applications query https://www.dshdesktop.cn/api/desktop/version 60 seconds after startup and every six hours after a completed check. Each no-cache request has a 15-second deadline, sends X-DSH-Desktop-Channel: beta together with the installed version, and shares one in-flight operation with the Check for Updates… tray command. Beta accepts only canonical -beta.N SemVer from a response explicitly marked channel: "beta"; it never silently consumes Stable. Background failures and non-newer versions remain silent; a manual check always opens a native result dialog. Install Stable Edition performs a separate stable-channel query, permits a lower target version, and installs Stable alongside Beta. Development, unpackaged, and Linux launches do not download an installer. On macOS the version check and the installer download also send X-DSH-Desktop-Arch with the CPU of the Mac, arm64 or x64. An Intel build that Rosetta translates sends arm64, so its next update is the Apple Silicon build.
Choosing Download first rechecks that the advertised version is unchanged, then opens a native save dialog. The default destination is the Downloads directory, but the user may choose another absolute path and filename; cancelling the dialog makes no download request. DSH Desktop follows the service redirect through Electron networking, streams at most 1 GiB to that selected path, records the installer location for the upgrade handoff, and rejects an incomplete DMG or Windows PE before exposing it. On macOS it opens the downloaded DMG and tells the user to replace the application in Applications and reopen it. On Windows it asks again after the NSIS installer is ready; Restart and Install launches that installer and requests orderly Cordis teardown before the current process exits. After the upgraded application starts, it offers to delete the recorded installer or keep it; either choice consumes the pending cleanup state. Download, filesystem, and installer-opening failures remain silent and leave the available-version tray action retryable.
Release operators must publish both platform artifacts before making a Beta version discoverable. The version and download service must select Beta for X-DSH-Desktop-Channel: beta, and download responses must echo both beta and the requested X-DSH-Desktop-Target-Version. Missing, unavailable, mismatched, or invalid values produce no Desktop prompt. Stable service behavior must remain available for the explicit install action and legacy clients. On macOS the service answers X-DSH-Desktop-Arch with the DMG for that CPU, or with the universal DMG while a version has none; a published digest must belong to the DMG it serves. Installations from releases before per-CPU DMGs send no CPU, and the version check must offer them a version that still has a universal DMG: the updater installs only an application whose version is the one the check announced.
On macOS and Windows, Open DSH Terminal opens a system terminal rooted at the active profile. The settings header places a restart menu beside this action with Restart Desktop and Restart in Recovery Mode. Every restart path opens a confirmation before orderly Cordis shutdown and Electron relaunch. The terminal welcome text identifies the application version, active profile, profile directory, and DSH home, then lists configuration and plugin-management commands. Inside this terminal, bare dsh, dsh --dump-config, and plugin subcommands without a profile selection default to that active profile; an explicit --profile and the upstream web alias keep their original meaning. DSH Desktop generates private per-profile dsh, pnpm, and node shims under its user-data directory, sets DSH_HOME, uses the active profile as the working directory, and prepends the shim directory only to that terminal's PATH. A later profile switch therefore does not change commands in an already open terminal. Terminal dsh commands pass the bundled pnpm to the official CLI, so plugin commands keep using it even when the terminal's PATH later resolves another pnpm. It does not edit the global environment or shell startup files. The macOS launcher preserves the user's interactive zsh or bash setup before restoring the desktop-owned values. Windows selects PowerShell 7, Windows PowerShell, or Command Prompt in that order and opens it in a new Windows Terminal window; when wt.exe is unavailable, a private cmd start broker creates a visible console instead. Synchronous launch failures and unsuccessful broker exits use the Desktop dialog surface. Linux has no tray terminal; instead, the application executable runs the packaged CLI when its first argument is dsh, for example ./DSH-Desktop-Beta-<version>-x86_64.AppImage dsh plugin list, or dsh-desktop-beta dsh plugin list after installing the deb. The process replaces itself with the CLI before Chromium opens any window, so the command needs no display, keeps its exit status, and an AppImage stays mounted until it ends. It sets the Desktop's data directory as DSH_HOME and defaults bare commands to the active profile as the terminal does, but provides no pnpm or node shims. When the in-app data directory choice cannot be read, it stops instead of falling back.
Desktop confirmations, warnings, errors, and results use one shadcn-backed DesktopDialogWindow. Each dialog is a separate sandboxed modal BrowserWindow, parented to the active Desktop window when available; it is not a component or portal inside the official Web page. A parented action-only dialog has no caption controls and therefore renders no empty frame; a standalone dialog with native traffic lights or caption controls uses the shared empty 36-pixel utility frame. Escape or an available window close maps to the bounded cancel action, and only a one-shot local result reaches the main process. Operating-system file-open and file-save pickers remain native because they select system paths rather than present a Desktop operation.
Recovery mode also uses an independent Desktop-owned window with an empty 36-pixel frame whenever macOS traffic lights or Windows caption controls are present. Its shadcn page first explains why Recovery opened, then separates actions into Plugin management, Rollback, Switch Profile, and Diagnostics tabs. Profile creation uses the same title-free utility frame only when its window exposes those controls. Recovery mutations and every restart request open a DesktopDialogWindow confirmation instead of placing a modal inside the recovery page.
Logs and diagnostics
After healthy startup, a main-process watchdog checks visible application content every five seconds. Two consecutive empty-page observations or unanswered probes trigger bounded automatic recovery even if the renderer has not exited. An unresponsive renderer is terminated and reloaded into a new process. Visible recovery also requires meaningful content in the viewport; plugin activation alone is insufficient. Checks pause for hidden/minimized windows, navigation, and recovery before page/Loader readiness. Each probe has a ten-second deadline, and stale navigation results and long suspension delays are discarded. Probes inspect DOM visibility, not screenshot pixels, and do not diagnose GPU-only display faults.
After a healthy startup, an unexpected interface-process exit (including out-of-memory) silently reloads the existing window without restarting the Host, opening a prompt, or revealing a hidden window. Recovery succeeds only after both page loading and the client Loader's healthy report; an unresponsive recovery attempt times out after 30 seconds. There are at most three automatic attempts, with no initial delay and subsequent delays of one and three seconds. The retry budget resets only after a recovered client remains healthy for one minute. Repeated failures pause automatic recovery and open a system-native fallback prompt: Try recovery again authorizes another bounded cycle, while Not now leaves the background service running. Choose Open DSH Desktop from the tray to return to that prompt, or Export Diagnostics… to investigate. Reloading can briefly interrupt the display and lose unsent input; this recovery does not fix the underlying crash or memory growth. Startup failures retain their existing recovery flow; intentional renderer termination and application shutdown do not initiate automatic recovery.
DSH Desktop Beta writes UTF-8 logs under its separate Electron user-data directory: %APPDATA%\DSH Desktop Beta\logs on Windows and ~/Library/Application Support/DSH Desktop Beta/logs on macOS. Full logs use dsh-YYYY-MM-DD.log; warnings and errors are also written to dsh-YYYY-MM-DD.error.log. Files rotate at 10 MiB, files older than seven days are removed at startup, and the directory is kept below 200 MiB. The dsh-desktop.logLevel setting controls verbosity and defaults to info.
On macOS and Windows, choose Export Diagnostics… from the tray to create a ZIP under the sibling diagnostics directory and reveal it in the system file manager. Export runs outside Electron's main thread, collects recent owned logs and local Crashpad .dmp files under a shared 50 MiB evidence cap, includes the crash-evidence/active-run.json marker when present, adds system-info.txt, and retains the three newest ZIP files. The confirmation dialog explains the privacy boundary before any archive is created. Recognized credentials are masked, but logs can still contain local paths, workspace IDs, session IDs, prompts, tool output, or third-party plugin messages; crash dumps can contain fragments of process memory. Review the ZIP before sharing it, especially before uploading it publicly.
When a failure opens the recovery assistant, Beta saves it in its data directory (~/.dsh-beta by default) as logs/dsh-plugin-desktop-beta-failure-<UTC time>-<stage>.log; Diagnostic report on the Quick recovery tab shows the file in its folder. As DSH 0.2.2's Desktop does, Beta keeps recent plugin operations for these reports: installs, removals, enabling and disabling through the official plugin manager, which the Plugins page, the plugin market and the Community Market use, and the plugin commands that dsh-market runs through the Desktop's desktopPnpm.runPlugin. A record holds the operation, the package name or plugin entry, an exact requested version, the outcome or exit code, and the Host run that observed it; other package specs, which can contain paths or credentials, are omitted. Records live in logs/plugin-operations/ in two segments of at most 256 KiB. After a report is saved, a Worker appends up to 100 recent records (64 KiB) within 500 ms, and the report of a Host failure names its host run. The records are context, not proof of cause: changes made from a command line or by editing files are not recorded, and missing records do not mean that nothing changed.
Native lifecycle
Closing the window hides it while the Host Cordis tree continues running. The tray reopens the window, selects the active profile, opens the isolated DSH terminal, checks for a stable release, changes mode through the standard settings namespace, or requests an explicit quit. Profile and mode changes both dispose the current Cordis tree before Electron relaunches. Native quit, SIGINT, and SIGTERM also request disposal before exit; a five-second deadline or a repeated request forces the final exit. Navigation and redirects remain on the exact loopback origin; external HTTP, HTTPS, and mail links open in the operating system, while the renderer uses contextIsolation, the Chromium sandbox, and no Node integration.
Packaging
Stable and Beta disable ASAR on Windows, macOS, and Linux. Packaged Electron smokes verify bundled Cordis skills through the local filesystem backend.
Like upstream Desktop, the package carries the primary runtime beside the application under Contents/Resources/runtime (resources/runtime on Windows and Linux): the standalone Python 3.12 pinned by the upstream lock with numpy, pandas, python-docx, python-pptx, openpyxl, Pillow, lxml and XlsxWriter, the standalone Node, the bundled pnpm, and the Office skill resources beside each payload. The universal macOS application carries one payload per CPU, runtime/arm64 and runtime/x64, and the installed shell selects the payload of the CPU it runs on; Windows and Linux carry runtime/x64 only. Every packaging entry runs scripts/prepare-runtime.ts before its gates: it downloads the archives and wheels the upstream lock pins (deepseek-harness/scripts/primary-runtime/lock.json) into .desktop-build/downloads, assembles each payload under .desktop-build/runtime/<cpu> with upstream's pruning of the NumPy and pandas test suites, writes its runtime.json with the product version and payload digest, verifies the tree and executes the payloads this host can run. Signed macOS releases pre-sign every Mach-O payload file with a hardened-runtime, timestamped Developer ID signature before electron-builder runs, as upstream does; signIgnore keeps electron-builder from re-signing them, and the universal merge rule covers the identical payloads. The afterPack hook, the final artifact check and the mounted-image verifiers check the payloads again. The Host mounts upstream's Office composition: the load_workspace_dependencies tool, which installs the payload under <home>/dsh-runtimes/dsh-plugin-desktop-beta-primary-runtime on first use (an edition-specific directory, because Stable shares ~/.dsh with the official Desktop and the tool replaces an installation whose manifest differs), and the office-docx, office-pptx and office-xlsx skills, which run the LibreOffice Kit CLI under the bundled Node. A packaged Host fails without its payload; a development Host logs a warning and starts without Office until yarn prepare:runtime ran.
yarn package:dir creates an unpacked directory for the current host platform. The packaged-runtime gate rejects an application directory that omits the desktop update and terminal modules, the DSH CLI bootstrap, the bundled pnpm entry, or the physical deployment package. Electron Builder emits the root manifest, desktop runtime, and complete dependency tree under resources/app/ (Contents/Resources/app/ on macOS); both Host profile boot and the CLI bootstrap use this physical tree so DSH profile-fallback symlinks never target a virtual ASAR directory.
The editable icon project is build/app-icon.icon, with a System Dark background and the BETA badge. macOS packaging compiles this layered source directly into Assets.car and declares CFBundleIconName; the packaged application keeps that native icon in the Dock. Apple’s compiler also supplies build/app-icon.icns for older macOS versions and the DMG volume. The Composer export build/app-icon.png is the Linux window icon and supplies the Windows build/app-icon.ico, whose exact high-DPI frames retain the channel artwork; the executable, NSIS installer, and uninstaller all use the ICO. It also supplies the Linux icon set build/icons/: one PNG per hicolor theme size from 16 to 512 pixels, since the theme declares no 1024-pixel directory. The Debian package and the AppImage install each one under the matching hicolor/<size>x<size>/apps directory, where desktop environments look up the desktop entry's Icon=dsh-desktop-beta. build/app-icon-mac.png is an inset raster used only by unpackaged Electron development, where no compiled app bundle is available.
After saving the project in Icon Composer, run corepack yarn icons:export --channel beta from the repository root on macOS with Xcode 27 and Icon Composer. Omit --channel to export Stable, Beta, and Next together. Add --linux to re-derive only the Beta and Next Linux icon sets from their committed PNGs, which needs no Xcode. Commit the project, all exports, and build/app-icon.resources.json; corepack yarn icons:check detects stale or missing resources on any OS without Xcode. Native macOS packaging requires Xcode 26 or later. If xcode-select points to Command Line Tools, set DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer for the packaging command; the export script discovers a full Xcode installation automatically.
build/tray-icon.svg is the brand-blue tray source: the build derives a macOS template image that the system colors automatically and fixed brand-blue Windows and Linux tray images.
WSL Linux headless checks
WSL2 is suitable for Linux headless build, typecheck, and unit-test coverage from a Windows workstation. Use a Linux Node.js installation inside WSL, not the Windows Node.js or Corepack shims that WSL can inherit through the mounted Windows PATH. When using nvm, start each shell with source ~/.nvm/nvm.sh before running Corepack commands:
source ~/.nvm/nvm.sh
git submodule update --init --recursive
corepack yarn install --immutable
corepack yarn workspace dsh-plugin-desktop-beta typecheck
corepack yarn workspace dsh-plugin-desktop-beta test
corepack yarn build
Commands run from /mnt/<drive> are valid but slower than a checkout stored on WSL's native ext4 filesystem. WSL does not replace a real Linux desktop session for tray, window-manager, .desktop integration, or installed-package smoke tests.
Local Windows x64 installer
Use a native Windows x64 machine with Git and x64 Node 22.23.2 (the same release used by CI). The packaging command accepts Node 22.19+ and Node 24.x, whose official distributions include the required Corepack command. From PowerShell in a fresh v2 checkout, run:
git submodule update --init --recursive
corepack.cmd yarn install --immutable
corepack.cmd yarn dist:win
Python and Visual Studio C++ Build Tools are not required. The Windows command uses node-pty's bundled x64 Node-API binaries instead of asking Electron Builder to rebuild them from source, and the packaged-runtime gate rejects an installer staging tree that omits those binaries.
dist:win refuses non-Windows and non-x64 hosts, runs a Windows-safe gate containing the build, all TypeScript compiler faces, packaging and native-shell focused tests, and the runtime-closure verifier, then builds an assisted NSIS installer and verifies both generated PE files. The full cross-platform suite remains CI-owned because some POSIX execution tests are not Windows programs. The installer allows a per-user or elevated all-users installation, permits changing the installation directory, creates Start Menu and desktop shortcuts, and preserves DSH user data when the application is uninstalled. Version 2.0.5-beta.2 is written to dsh-plugin-desktop-beta\dist\DSH-Desktop-Beta-2.0.5-beta.2-x64-Setup.exe; the unpacked application remains at dsh-plugin-desktop-beta\dist\win-unpacked\DSH Desktop Beta.exe for smoke testing.
This local command deliberately strips Windows certificate variables and sets signExecutable=false. Its output is installable for testing but has no Authenticode publisher, so Windows can display an Unknown publisher or SmartScreen warning. A signed Windows release, certificate verification, installer upgrade/uninstall testing, and native UI/sandbox smoke remain separate release gates.
Windows x64 portable ZIP
Use yarn dist:win-portable on a native Windows x64 machine to create an unsigned portable ZIP:
corepack.cmd yarn dist:win-portable
The output is dsh-plugin-desktop-beta\\dist\\DSH-Desktop-Beta-2.0.5-beta.2-x64-Portable.zip. Extract it to any writable directory and launch DSH Desktop Beta.exe without an installer, administrator access, Start Menu registration, or uninstall step. The application still keeps its profiles, logs, and caches in the Beta Windows user-data directory, so this is portable distribution rather than a self-contained data sandbox. Portable archives are not handed to the NSIS updater and must be replaced manually when a new version is released. Local builds are unsigned and may trigger an Unknown publisher or SmartScreen warning; signed portable artifacts remain a release gate.
macOS DMG smoke
yarn dist:mac-smoke builds one unsigned universal DMG on a native macOS host. The same package runs natively on Intel and Apple Silicon Macs. The command refuses non-macOS hosts and runs the complete product gate before packaging: repository layout and community-contract checks, the Market build and check, then the Desktop build, every TypeScript compiler face, the full unit-test suite, runtime-closure verification, CLI/Loader/profile headless smokes, and the license audit. This includes the real login-shell tests for each supported shell installed on the macOS runner. It then packages without code-signing material, mounts the DMG, and verifies the property list, executable bit, both x86_64 and arm64 slices, and the Contents/Resources/app/ runtime entries. It mirrors dist:win's secret discipline by stripping every Electron Builder macOS signing and notarization variable, sets CSC_IDENTITY_AUTO_DISCOVERY=false, disables notarization, and never publishes. The artifact has no Developer ID signature, so Gatekeeper will block it on other machines; it exists so packaging regressions fail in CI before a manual release. The signed and notarized universal release remains yarn dist:mac on a credentialed macOS machine and writes its artifact to dsh-plugin-desktop-beta/dist/mac-release/.
Model Experience
None. The desktop package changes application composition and native presentation; it does not add model-visible instructions, tools, events, or request fields.
KV Cache effect
None. The same DSH Host and client feature plugins assemble model requests.
Known Limitations and Deferred Work
- Adding or removing a profile bundle requires restarting DSH Desktop; the launcher does not watch profile manifests. Selecting another profile from the tray performs that restart automatically.
- Switching compatibility/extended/enhanced mode or changing material always restarts the application by design; a live generation never hot-swaps Loader rows, slot ownership, or native materials.
- Extended and enhanced modes are unavailable on Linux. Linux continues to use the compatibility presentation.
- The macOS and Windows tray terminal exposes private
dsh,pnpm, andnodeshims. Separately, the Host runtime exposes the bundledpnpmcommand on the current Electron processPATHfor ambient compatibility and provides the manageddesktopPnpmservice; none of these commands are added to the systemPATH. Linux has no desktop terminal; its<app> dsh …command runs only the packaged CLI. - On Windows, the ambient
pnpmcommand and lifecycle Node helper are.cmdshims.desktopPnpm.run()avoids shell lookup for the manager process by launching the exact packaged pnpm entry, while upstreamdsh plugin, PowerShell, and Command Prompt can resolve ambient shims through a command interpreter. A third-party plugin that calls Nodespawn('pnpm', { shell: false }), or a lifecycle script that directly executes its.cmdnpm_node_execpathwithshell: false, remains non-portable and should use the service or a shell-aware launch path. dshmarket@1.2.3remains an optional user-installed third-party package, not a bundled marketplace. Preinstallation is deferred until an audited release consumes the optional Desktop services while preserving ordinary DSH fallback and includes the complete license notice required for redistribution.- The update handoff validates the download container, not publisher identity. macOS still requires the user to replace the application from the opened DMG; Windows runs the downloaded NSIS installer but the local
dist:winartifact is unsigned. Signed artifacts, Authenticode/publisher verification, SmartScreen reputation, and native upgrade testing remain release gates. - The shared carrier is HTTP and WebSocket, not Electron IPC. It defaults to loopback and supports an explicitly confirmed all-interface LAN bind. Replacing the carrier requires transport extension points in upstream DSH and is outside this standalone package.
- Beta vendors the official DSH
0.1.6-alpha.2runtime built from the pinned release source. Desktop builds consume these packaged interfaces without linking the source checkout. Upstream migrates historical sessions to V3, including legacy PTC events andcodepreset references, while preserving the original logs; Desktop no longer creates preset aliases. V3 sessions cannot be read by older runtimes. Extended and enhanced modes host the right Sidebar with document previews, split panes and fullscreen, and support global plugin panels through the keyedmainslot independently of Session selection. package:diris an unpacked smoke artifact.dist:winadds an unsigned NSIS test installer but does not establish Authenticode identity or SmartScreen reputation. Installation and upgrade behavior, native notifications and terminals, the Windows ACL sandbox, and native-material appearance remain target-platform verification boundaries.
Developer logging
Enable Developer logging in Desktop settings → Logs. It is off by default and changes take effect immediately; the log level controls both kernel file logs and developer records. When enabled, structured metadata covers Cordis sources, sequences and plugin IDs, plugin state, Agent turns/steps, model stream duration/outcomes/chunk counts, tool execution and error codes, retry decisions, Host ↔ Electron IPC, HTTP routes/status/duration, Host stdout/stderr and desktop Renderer console output. Each launch has a runId, each process has a pid and record sequence, and each operation has an operationId.
These observers do not collect prompts, model output, tool arguments/results, HTTP/IPC bodies or request headers. Error chains, process output and console text may still contain information printed by plugins; existing masking, length limits and Renderer rate limits apply. Disabling the switch preserves errors and existing lifecycle logs. Electron and the separate Host write to the existing logs and logs/host directories, with 10 MiB per file, 200 MiB per directory and seven-day rotation. Export diagnostics continues to produce a ZIP containing these logs and existing crash evidence. OS kernel tracing and packet capture are not included.
Plugin inventory uses the official readPluginInventory() API for effective enablement and lifecycle phases. When the optional official Inspector is available, ctx.inspector.cordis.getTree() supplies runtime source, revision, connection and truncation metadata; Desktop does not reconstruct its topology. Session metadata uses the official session/event feed and preserves event types, sequence numbers and timestamps for correlation with Session Log. Raw session/chat inspection, NodeJS debugging and outbound fetch capture remain in the official developer tools. Desktop keeps operational timing, process/IPC diagnostics, file retention and diagnostic export. Enabling developer logging does not enable the official capture tools or copy their raw payloads into exports.
Badge
Listed here? Link back with this badge — paste the snippet into your repository README.
[](https://dsh-plugin.com/plugins/anywhere-labs/deepseek-harness-desktop/dsh-plugin-desktop-beta)