This is the first stable release of the 0.1.24 line, graduating the full 0.1.24-beta.1–0.1.24-beta.6 content: personal SSH remote environments enter the published package as an experimental, off-by-default mode, with connection and Workspace Root binding management, the remote_copy and remote_bash remote tools plus their argument validation, failure guidance, and output budgets, SSH dependency repair guidance and Helper installation diagnostics, the shipped install-ssh-deps command and a one-click Desktop install entry; the exact-support contract moves to DSH 0.2.3-alpha.2 (27 exact releases) with the Session origin as the Registry/scope identity, a client fork re-sync, and a dual-cordis root probe for Auto Review; it also carries the Workspace Folders dialog additional-root list scroll fix, the BoringSSL PSK fallback for forwarded streams on DSH Desktop, and the fix for a Host exit when the plugin is uninstalled with a live SSH connection. There are no breaking changes; with SSH off, behavior matches v0.1.23. 0.2.3-alpha.1 is not supported because its published release cannot start. The per-beta prerelease notes remain in the sections below.
Added
- SSH remote environments (experimental, off by default): the first published form of Issue #32, exposing personal SSH only. The plugin-detail settings switch (
multi-root-remote-tools.enabled) is off by default and asks for risk confirmation the first time it is enabled; turning it off unloads the remote tools, drains in-flight operations with a cancellation signal, and closes the remote control plane. Connections and Workspace Root bindings are managed separately: a connection (host, port, account, platform, host fingerprint, credential reference, Helper and execution/transfer capability limits) lives in the plugin-levelremoteEnvironments.personalPath(default$DSH_HOME/storages/multi_root_workspace.remote-personal.json, schemaVersion 2), while Workspace bindings live in the sibling.bindings.json; one Workspace can bind several non-overlapping remote directories through the same connection. Both files must be regular files owned by the current uid, not symlinks, mode at most 0600, in a parent directory not writable by group or other, and outside every bound local primary root; protection and content are re-checked before each snapshot/list/admit/add/remove, and concurrent changes are serialized by a kernel lease plus CAS so multiple Hosts never lose a record. The credential root (default$DSH_HOME/storages/multi_root_workspace.ssh, 0700) holds generated keys, imported private keys,secrets/, the managedssh_configandknown_hosts; no endpoint ever returns private-key or password bytes. Host keys are verified throughssh-keyscanor the local known_hosts and confirmed with a 60-second token; a managed connection writes anIncludeat the top of~/.ssh/config(backed up first, idempotent; when~/.ssh/configis a symlink the write lands on its resolved target and never replaces the link), and an unlinked managed connection reportsssh-config-not-linked. Helper installation is verified against the package'slib/*and a post-install file-set digest, and Helpers older thanintegrity: 2must be reinstalled; a managed password first installs an access key through a 0600 one-shot password file andSSH_ASKPASS, rolling back on the same target or returningaccess-key-reconcile-required. LiteralHostaliases from the local~/.ssh/configcan be used directly; wildcards and negations are skipped. remote_copy: single-file transfer in three directions: local → remote (SFTP staging), remote → local (0600 exclusive staging in the target parent directory), and remote → remote (Host relay with both endpoints admitted together). The source inode is bound before the transfer and re-checked for realpath, regular-file, size and mtime, then read in bounded chunks;maxBytesis enforced cumulatively before each write, so a source that grows after binding is refused withtransfer-too-largeinstead of having over-budget bytes written to staging, and the verified bytes are published with an atomic no-replace hardlink after read-back. A lost reply yieldsunknownplus a reconcileId and is never retried; cleanup touches only this operation's staging and only while the same session generation is alive.transfer.timeoutMsis one budget covering admission, handshake, reads and writes, verification and publish; each copy endpoint owns one SFTP channel and cleanup gets its own one-second budget.remote_bash: remote commands under two admissions: one admission verifies and confines, the second admits again and spawns inside it, so a revocation or backend generation change between the two never reaches spawn; from the moment spawn returns a handle it watches cancellation, timeout and authorization changes (owner notifications plus a once-per-second re-check, with a 5.5-second cutoff when one round reaches no conclusion). Results keepnot-started/may-start/exited/scope-exited/unknownapart, termination reasons arerevoked | cancelled | timeout, and an outcome that cannot be confirmed withinterminateGraceMsreturnsunknownwith a reconcileId rather than waiting forever or replaying. Execution and transfer are authorized independently, and redirected directories or an out-of-scope cwd are refused before command preparation.- SSH management UI: the plugin detail page opens “SSH remotes” over a dedicated
/multi-root-workspace-ssh-settingsConnection channel, with Connections and SSH Keys tabs, while bindings stay onPANEL_CHANNELand derive the primary root from the current session; “Add connection” is a two-step wizard (connection → connection setup), and Workspace Folders gains a “Remote working directories” section with a binding wizard that shares the row shape of primary and additional roots, showing a copyablessh://user@host:port/pathaddress. Asynchronous requests report through in-place spinners,aria-busy, delayed-fade status lines and a top progress bar, and requests that rewrite configuration are serialized by revision. All eight panel, detail and preview dictionaries gain the SSH copy, with key sets, key order and placeholders pinned bytests/locale-parity.spec.ts. - SSH compatibility gate:
@deepseek-ai/dsh-ssh,dsh-fs-ssh,dsh-sandbox-sshanddsh-subprocess-sshare optional peers (peer range identical to the core allowlist), loaded at run time from the host anchor throughsrc/compat/ssh-packages.tsand never imported statically;SUPPORTED_SSH_RELEASES(0.2.2-rc.1–0.2.3-alpha.2) must remain a suffix of the 27 exact releases. A missing, drifted or privately copied SSH package only makes SSH capabilities absent; it never changes the local compatibility verdict.pack:checkrefuses static SSH imports and packaged SSH broker entry points. - SSH dependency repair guidance: once the SSH switch is on, the Host inspects
@deepseek-ai/dsh-ssh,@deepseek-ai/dsh-fs-ssh,@deepseek-ai/dsh-subprocess-ssh, and@deepseek-ai/dsh-sandbox-sshin the current profile and reports one of six states — all missing, partially missing, version mismatch, private copy, unresolvable, or installed but restart required. When the set is not ready, an Install SSH dependencies dialog opens automatically (also reachable from Manage SSH environments), lists each package's state, and, when the profile is CLI-managed, shows aDSH_HOME=… dsh plugin --profile <name> add --save-exact <four packages>@<Host version>command with a copy button. Recheck dependencies only reads state; a running Host never runs the package manager for the user, and after installing the packages the Host still has to be fully quit and restarted with the same profile — refreshing the Web page is not a restart. - Helper installation diagnostics: a failed installation is classified under
host-preflight,ssh-connect,remote-prerequisites,remote-install,artifact-verification,entry-generation, orconfig-commitand carries whether it is retryable, the remediation, the exit code, a bounded stderr excerpt, expected and actual versions, the remote state (may-have-changed/installed/verified), and the registration state (not-committed/unconfirmed). The connection page keeps expandable details after the transient notice and distinguishes "the remote side may have changed" from "the remote side is installed or verified but Host registration is unconfirmed", which need manual checking. OpenSSH exit 255 recognizes only the standard host-key, authentication, unreachable, timeout, and interrupted diagnostics; anything else is reported as a separate unknown error, and a remote write is never retried because of a diagnostic. - An SSH dependency install command shipped with the plugin: the published tarball now carries
scripts/install-ssh-deps.mjsandlib/install-ssh-deps.js. The command resolves the exact DSH CLI, profile, DSH Home, and Host release from the trusted installation context, verifies them, and runs one structured-argvdsh plugin --profile <name> add --save-exactoperation that aligns all four SSH packages to the Host release. Repeating it reports ready without another write, and paths containing spaces, single quotes, or non-ASCII characters are supported. - A one-click Desktop install entry: when the Desktop launcher explicitly supports it, the dependency dialog shows Install and restart, while keeping the copy-command and recheck entries. The launcher accepts only the fixed action, and the trusted side supplies the profile, release, and arguments. Web and older Desktop builds keep using the copy command.
- Failure guidance and endpoint candidates: both tools keep the
status/code/stage/staging/operationId/reconcileIdsemantics and add boundedmessageandhinttext for diagnosable failures. The text is generated only from stable error codes and safe fields; captured exceptions, raw SSH diagnostics, and credential paths never reach the model context.invalid-cwd,destination-parent-missing, andlocal-root-unavailableeach get a targeted hint, and endpoint errors may list up to 6environmentId:rootIdcandidates per direction. Candidates come from the Registry snapshot of the current Session's primary root and are filtered by registration state, required action, read-write/execute access, and known peer pairing; reading them neither connects nor consumes admission. When the snapshot is unavailable the original error code and a generic hint remain.unknownandadmitted-may-startprompt the model to check the remote state instead of retrying blindly. - Output budget and byte counts:
remote_bashgives stdout and stderr a 64 KiB preview budget each by default, with the raw window and the JSON string content each bounded by that same limit;maxOutputBytesadjusts the per-stream budget within that stream's deployment cap. Results reporttruncated,totalBytes, anddroppedBytesper stream.droppedBytessubtracts only the raw bytes that did not reach the preview, covering upstream head loss, trailing UTF-8 trimming, and JSON budget cropping, and isnullwhen it cannot be proven. New personal SSH connections keep the 1 MiB stdout and 256 KiB stderr collection caps; saved connections keep their existing configuration.
Changed
- Exact support for DSH
0.2.3-alpha.2: the support contract, every DSH peer range, the development pin, the SSH floor and Auto Review's joint contract (12 exact releases) move to alpha.2 together. Upstream'senginesfield requires Node^24.22.3 || >=26.13.1, so the 0.2.3 lane runs on Node24.22.3.0.2.3-alpha.1stays outside the contract: its published packages still pin cordis 4.1 / loader 1.1 while their sources already use the 4.2 root symbol and loader-1.2 exports, sodsh --versiondies on the missingEntryValidationErrorexport; alpha.2 adds the vendor 4.2 bump and starts normally. Relative to0.2.2-rc.5, alpha.2'ssrcdelta is three lines outside the plugin's seams (app-boot profile resolver, boot/hmr manifest, ptc-runtime-node vm-modules); every server-seam delta comes from therc.5 → alpha.1source, and one adapter covers both tags. - The Session origin is the only identity: from
0.2.3-alpha.1, upstream resolves the sandbox policy'sworkspaceRootto the effective working directory. Registry keys, scope grants, instruction discovery, Review context, the command primary root, Files routing and the process fence usesession.header.cwd(originDirectory/policyOriginRoot) instead, whilepolicy.workspaceRootremains only the upstream enforcement boundary and path base. After a Session enters an additional root, a registered read-only root cannot gain write access through the effective directory andtoolAccesscaps cannot disappear. - Client fork re-sync and resume attribution: the Files header and open-in-app upstream client files are re-copied; the Files header path follows the pane's effective directory while the management dialog keeps the Session origin identity. Resume replay accepts both
workspace-root/change(stateVersion 3) and the deprecatedworking-directory/change; Auto Review attributes instruction provenance structurally through thestateVersionat which the Host registers its working-directory projection, and skips old relative activity it cannot prove instead of misattributing it. - Dual-cordis root probe for Auto Review: cordis 4.2 removes
ctx.rootin favor of theContext.rootsymbol while a real alpha.1 host installs cordis 4.1.src/compat/cordis-root.tsadds a structural probe that fails loudly on an unknown API, and the fork diff gate gains item 9 rejecting a direct spelling of either API. - Unified
remote_copyarguments:fromandtoreference the same endpoint definition{environmentId?, rootId, relativePath}. Only an omittedenvironmentIddefaults tolocal;nulland the empty string are argument errors, and a remote endpoint must name its environment. The local primary root is spelledlocal:primaryand additional roots use their registeredaliasId. The schema the tools advertise and the execute-boundary validation come from one declaration, so missing fields, wrong types, unknown fields, and nested objects all end at the tool layer asinvalid-argumentswith a field location, before Registry admission and any SSH/SFTP I/O. Tool descriptions and the user guide now show one upload and one download example, and the guide and technical reference record the single-file transfer properties (the target is created 0600, the source mtime and executable bit are not preserved, an existing target is refused) plus the deferred metadata, overwrite, and recursive designs. - Helper prerequisites are checked before the first remote write: the server must be Linux or macOS, run Node.js ≥ 24.9.0 at a normalized absolute path, provide a working npm, and allow writing
$HOMEand~/.dsh-helper/<version>(or its nearest existing parent). When the remote PATH selects an older Node, the connection card's installation form accepts the absolute path of the newer executable.npm installstill runs exactly once and is never retried, the entry script is deployed as a 0600 temporary file followed by an atomic rename, and the installation and Host registration results are confirmed separately. - The new integration does not change existing behavior by default: the SSH row ships with the bundle, but
enabled: falseregisters no remote tool, verifier, capability projection or profile guard, and the Registry's remote control plane staysdisabled;team/hardened/ broker tiers are treated as disabled, the published package drops the broker entry point and installer, and the design and probes remain research records only.
Fixed
- Additional-root boundaries after an effective-directory switch: the Files
listand directory-changesfallbacks now test both the requested spelling and the resolved canonical target against registered-but-withheld roots; a stored Session's wire root taken from the projection cache now derives its identity from the durable header'scwd; and when Registry authority is unavailable, the process clamp and the Files wire-origin fallback also use the Session origin. - The additional-root list in the Workspace Folders dialog was clipped with many roots, a short window, or wrapped rows: the dialog had no viewport-relative height cap and the additional-root section did not scroll, so 16 roots plus a limit notice — or a wrapped batch-action heading at narrow width — clipped rows inside the section and pushed the add controls out of view. The dialog is now capped at
min(80vh, 100%); the additional-root section yields height first, the row list takes the remaining space and scrolls in place, and the primary row, both section titles and the add row stay fixed; the list's minimum height follows the tallest measured row (--mrfw-root-row-height, 0 for an empty list, a 70px fallback when measurement is unavailable), keeping at least one complete row visible. On a very short viewport the dialog body takes over the fallback scroll, a wheel at the end of the list hands off to the body, and the footer and add controls stay reachable. Dialog size and scroll behavior at normal heights are unchanged. - Registering a remote directory from DSH Desktop reports
NO_CIPHER_MATCH: Electron's BoringSSL does not implementPSK-AES256-GCM-SHA384, the suite@deepseek-ai/dsh-sshpins for forwarded streams, so the Host fails while creating the local TLS context and the directory probe and registration never complete. On a BoringSSL runtime the plugin now replaces exactly the upstreamauthenticateStreamcall withECDHE-PSK-CHACHA20-POLY1305(AEAD with forward secrecy; only the exact option shape is matched, so a caller's own cipher exclusions stay intact), and installs an additivehelper-entry-v3.mjsthat appends the same suite to the Helper's server cipher list before loading the upstream Helper.helper-entry.mjskeeps the byte-identical beta.2 template, the recordedintegrity,helperPath, andbindingDigestdo not change, a plain-Node Host keeps negotiating the original suite, and a beta.2 rollback can still verify and launch the helper. A desktop Host without the v3 entry getshelper-outdatedand reinstalls once; registered Roots need no re-registration, and the panel relays the code unchanged. See ADR-0051 (opens in a new tab). - Uninstalling the plugin while a live SSH connection is held terminated the Host with an uncaught exception: upstream
SshConnectionremoves its one-shot authenticationerrorlistener on a forwarded stream's TLSsecureConnectand attaches the connection's permanent listener only afterwards. A connection loss in that gap makessocket.destroy(error)raise theSSH connection losterror constructed bySshRpcPeer.close()as an unhandled'error'event. The plugin now attaches an error guard synchronously whentls.connectreturns for upstream forwarded streams, on both native and BoringSSL runtimes; it does not replace the connection's own listener, does not change real-loss invalidation or reporting, and installs no process-level exception handler. Manager shutdown is now an idempotent transaction: stop accepting new work, cancel and await in-flight transfers, then release Helpers, SFTP sessions, and fibers independently; a connection that completes after shutdown starts is reclaimed, a failed resource is diagnosed while the others still proceed.