dsh-workspace-relink: A new path for a relocated DSH workspace

After moving a DSH workspace directory, the entire session becomes unusable due to an invalid current working directory (cwd). Since session headers are append-only and lack migration interfaces, the client plugin `dsh-workspace-relink` (MIT, 0 stars on the repository) maintained by blankwy decomposes this issue into a routing problem. It creates a Windows junction for the old path and updates the workspace record to point to the new path. Sessions are transferred one by one through registry attach/detach verification, without altering a single byte of history. The plugin does not move or delete files; the web interface allows previewing the plan, executing the migration, moving individual sessions, and viewing or removing recorded routes. It also provides five agent tools—`workspace_relink_status`, `plan`, `apply`, `move_session`, and `route_remove`—all requiring confirmation before execution. Limitations include the requirement that the new and old directories be accessible on the same machine, the need to rename the residual old directory to make way, the restriction of removing only one's own recorded routes, and the ineligibility of sessions without a cwd to be migrated. The README does not provide installation commands; the access method must be confirmed from the repository page. The plugin runs with the privileges of the current DSH process, so one should inspect the source code and license before installing. It is suitable for DSH users who have moved their directories but do not wish to discard their session history.

Read More