dsh-split-chat: Open full chat side-by-side in DSH right sidebar

Preface

When working with agents or long-running tasks in DeepSeek Harness (DSH), a common practice is to open multiple sessions or switch back and forth in the main area. However, the main area can only accommodate one current conversation; to continue inputting, approving, or stopping in the main area while referencing another session, users often have to rely on system window splits or frequent tab switching, which results in high interaction costs.

Below is an introduction to the community client plugin dsh-split-chat (maintainer imshz6669): it opens any existing session as a full conversation tab in the right sidebar, leaving the main area conversation undisturbed; both sides can send and receive normally. The right sidebar can also be split into another pane, allowing for up to 3 independent conversations simultaneously (main area + right sidebar). The plugin is categorized as a “Client” plugin and can be searched on the SkillHub directory page; the ecosystem directory is an independent community site and has no official affiliation with DeepSeek or Hunyuan.

What is this

dsh-split-chat is a client bundle plugin for DSH. It mounts an embedded conversation view via the right sidebar resource protocol dsh-resource://splitchat/session/<id>. It shares the DSH Session Controller with the main area, but input, approval, and stopping are independent for each. There is no Host logic, no database modification, and no additional model or token cost. Source code and license are available in the GitHub repository (MIT, package.json version 0.2.0).

Core Features

Scenario Behavior
Session row ... menu Adds “Open ‘Session Name’ on the right”; clicking it expands the right sidebar and shows a conversation tab for that session
Session row hover Icon button (⧉) for the same action
After opening The right sidebar becomes a full conversation + input box; the main area remains unchanged; opening the same session repeatedly deduplicates by contentId, only focusing the existing tab
Right sidebar splitting The right sidebar can be split into another pane → up to 3 conversations in Main + Right
Switching main session Opened right sidebar tabs globally follow to the new main session’s dock layout; original collapsed state remains collapsed
Main area is already current session Right sidebar displays “This session is already open in the main area” (Session editor has a single root, no duplicate mounting)
Cross-column sending ⇄ next to the input box: fills the selected text from this column (or the last assistant reply if none selected) into the other side’s input box; Shift+click sends directly

In narrow windows (width < 768px), the right sidebar automatically goes fullscreen to avoid height collapse. Closing a tab or collapsing the right sidebar releases sessions.retain and does not affect the main area; archived or deleted sessions will show a prompt within the tab saying “Cannot open this session”.

Installation and Activation

Environment Requirements: DSH 0.2.1-rc.2 and above (desktop and Web use the same client plugin mechanism). The plugin relies on DSH internal public interfaces; the README states it has been verified on 0.2.1-rc.2, but self-regression is required after upgrading to 0.2.2+.

Please read the repository’s lib/client.js and license before installing; the plugin runs under the current DSH process permissions and shares session and input capabilities with the host.

Method A: Plugin Page / plugin_manager

Install this plugin directory as a local plugin (requires the absolute path of the directory on the local machine):

  • GUI: Settings → Plugins → Add Plugin → Local Absolute Path
  • CLI:
dsh plugin --profile <profile> add link:<Absolute path to this directory>

The installer will write to the profile’s dependencies and dsh.profile.bundles (the package declares dsh.bundle.patch).

Method B: Manually Edit Profile

Edit the profile’s package.json, and append dsh-split-chat to the end of dependencies and dsh.profile.bundles, for example:

{
  "dependencies": {
    "dsh-split-chat": "link:D:/path/to/dsh-split-chat"
  },
  "dsh": {
    "profile": {
      "bundles": [
        // ...append to end
        "dsh-split-chat"
      ]
    }
  }
}

Execute the following in the profile directory:

pnpm add link:D:/path/to/dsh-split-chat

Then restart the client. The README notes: On 0.2.1-rc.2, newly installed client bundles may take effect via client-modules HMR, and the menu may appear directly; if there is a disconnection or it doesn’t catch up, refresh the page, and restart if it still doesn’t work. If changes to lib/client.js do not take effect, similarly refresh or restart.

Typical Usage

  1. Left session row → ... → “Open on the right” (or hover and click ⧉).
  2. A tab for that session appears in the right sidebar; send messages, approve, or stop normally.
  3. The + / split button on the right sidebar title bar can open another pane; × closes the tab.
  4. When switching the main area to another session, opened tabs in the right sidebar will follow; to clear the right sidebar, close the corresponding tabs.
  5. Transfer content across columns: select a segment in the conversation (or none), click ⇄ next to the input box to fill it into the other side; hold Shift and click ⇄ to send directly.

Note: The session row must have at least one non-blank message for the ... and hover buttons to appear—this is a DSH rule for blank sessions, not a limitation of this plugin; just send a message first in a new session. If the hero page (no session selected) has no dock, openResource will fail, and the plugin will fallback to opening the session in the main area. The plugin does not provide “Create new session in right sidebar”.

How it Works (Brief)

The entry point is in the session menu / row button, calling ctx.sidebarRight.openResource('dsh-resource://splitchat/session/<id>', { kind: 'splitchat' }); the right sidebar renders a tab based on the kind, keeps the session alive via ctx.sessions.retain(id, { source: 'splitChat', signal }), and embeds the variant: 'embedded' conversation view using renderFactorySlot. Global Follow subscribes to ctx.sidebarRight.mounted and re-openResources in the new session’s dock when the main session switches. Cross-column Send registers ⇄ in conversation.input.right, writing to the target input box via setDraft / submit from conversation.input.shell(target session).actions. Registration points are centralized in lib/client.js’s apply(), with no build chain, acting as a hand-written client-module bundle.

Use Cases and Limitations

Suitable for: Pushing forward with two (or three) sessions in parallel; running the current task in the main area while monitoring a reference session or subtask in the right sidebar; needing to quickly reference the last reply or selected segment between the two sides.

Limitations (Excerpted from README): The same session cannot be edited simultaneously in the main area and right sidebar; cross-column sending is plain text, preserving no rich text / Markdown; right sidebar width is initially about 45%, max 70%, main area guarantees a minimum of 400px; relies on host services like conversation.input, if missing, ⇄ may prompt failure. Global follow writes the tab into each main session’s own dock persistent layout—closing the tab and then switching sessions will not resurrect that tab.

Conclusion

dsh-split-chat, without significantly modifying DSH, uses the right sidebar resources and embedded conversation views to implement parallel chatting in the main area + right sidebar (up to three panes), supplemented by global follow and cross-column ⇄. Installation relies on local link: paths; do not invent remote dsh plugin add commands based on the repository name.

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

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

Xiaoye