Moving DeepSeek Harness Sessions Between Workspaces

Introduction

In DeepSeek Harness (DSH), the ownership relationship between a session and a workspace is bound to the immutable SessionHeader.cwd field. Currently, there is no API to reassign an existing session. When you need to reorganize sessions between workspaces, the only options are to manually create new sessions or manually move directories—both of which are tedious and prone to oversight.

Below is an introduction to a client-side plugin that moves sessions between workspace groups in the DSH sidebar via two methods: menu selection and drag-and-drop.

What Is This

dsh-workspace-mover is a DSH plugin published by maintainer ZY-WANG-0304. It provides client-side drag-and-drop and menu entry points to move sessions within the current workspace to other workspaces, or to remove them from any workspace.

The plugin is distributed as a DSH bundle and works through a patching mechanism in the internal registry. After installation, restart the Host so that the Host side installs the registry wrapper, and the Client side reloads the page accordingly.

Core Features

Move via Menu

Open the menu (⋯) on a session row and select Move to workspace, then choose the target workspace from the pop-up list. If you don’t want to move the session to any workspace, select “Leave every workspace.”

Move via Drag-and-Drop

Drag a session row onto another workspace’s group header and release to move it into that workspace. During the drag, the target workspace name is displayed as a chip. To remove a session from a workspace, drag the session row onto the Ungrouped header and release.

Data and State

Moving a session only changes its workspace affiliation. It does not touch session logs, files, or in-progress tasks. The redraw of workspace groups in the sidebar is driven by DSH’s workspace/follow stream.

Installation and Activation

The plugin is distributed as a DSH bundle.

  • Desktop app: open Plugins → Add plugin, enter dsh-workspace-mover, and confirm.
  • CLI profile: run the following command under the corresponding profile:
dsh plugin --profile <name> add dsh-workspace-mover

After installation, restart the Host so that the Host side installs the registry wrapper and the Client side reloads the page.

Typical Usage

  1. In a workspace group in the DSH sidebar, locate the session row you want to move.
  2. Click the ⋯ menu on the right side of that session row and select Move to workspace.
  3. Choose the target workspace from the pop-up list (or select “Leave every workspace”).
  4. If you prefer drag-and-drop, drag the session row onto the target workspace’s group header and release; drag it onto the Ungrouped header and release to remove it from the workspace.

Use Cases and Notes

This plugin is suited for users who need to reorganize sessions between DSH workspaces, group multiple sessions into a single workspace, or remove sessions from a workspace.

The plugin runs with the current DSH process permissions. It is recommended to review the source code and license (MIT) before installation. The plugin maintainer, ZY-WANG-0304, provides the repository and issue tracking on GitHub.

Closing Remarks

dsh-workspace-mover makes moving sessions between workspaces intuitive and undoable through both menu and drag-and-drop interactions, reducing the manual effort of creating new sessions and moving directories. For more details on implementation, refer to the repository README and documentation.

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

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

Xiaoye