dsh-cockpit-worktree-open-shim: Connecting the "open editor" for remote worktrees to the correct machine
This article introduces the DSH plugin `dsh-cockpit-worktree-open-shim`. It solves the issue where clicking "Open in Editor" in a Worktree Session on a remote machine falls back to the local `vscode://file/` link, preventing access to the worktree. Acting as a deployment-side adapter, the plugin registers the `cockpitBridge.editorOpen` service from `dsh-cockpit-bridge` into the `worktreeSession.openHandler` extension point of `dsh-worktree-session`. It monitors the loading of both ends at runtime and forwards the absolute path of the worktree as-is. The article provides the official installation commands from the README (install the bridge tarball first, then the shim, and restart the web), removal instructions, behavioral details, and known limitations (bridge requires >= 0.4.0, requires VS Code Remote-SSH, supports directory names with dots, etc.). The plugin is maintained by prgrmrwy under the MIT license. The current version is 0.1.0, and the source code is located in the ohmydsh repository.
Read More