nzlov/dsh-tile-layout: DSH Web Multi-Session Split-Pane Panel

Introduction

In DSH Web, switching between multiple conversations often requires navigating across pages, leading to fragmented context and page reloads. For developers and agent engineers who need to compare multiple conversations side by side, debug in parallel, or manage several sessions simultaneously, this kind of switching not only breaks their train of thought but also increases operational overhead.

Plugin Overview

nzlov/dsh-tile-layout is a client-side plugin that provides a tiled panel for DSH Web conversations. It displays multiple full native conversations side by side, each with independent width, ordering, enabled plugins, and right sidebar, while persisting layout state locally in the browser.

Installation & Activation

The plugin requires DSH Web version >=0.2.2-rc.4 <0.3.0.

Open “Plugins → Add plugin” in the DSH sidebar and enter dsh-tile-layout to install and activate it. Alternatively, run the following on the DSH host:

dsh plugin --profile web add dsh-tile-layout

If web is not your default profile, replace it with your actual profile name. If prompted to restart after installation, restart the Web service and refresh your browser.

To install from GitHub, enter the following in “Plugins → Add plugin”:

git+https://github.com/nzlov/dsh-tile-layout.git#main

Or run on the host:

dsh plugin --profile web add 'git+https://github.com/nzlov/dsh-tile-layout.git#main'

To install from a local package, first run the following in the repository directory:

git clone https://github.com/nzlov/dsh-tile-layout.git
cd dsh-tile-layout
npm run build
npm run check
npm test
npm pack

Then install the generated .tgz file, or use its absolute path on the host:

dsh plugin --profile web add '/absolute/path/to/dsh-tile-layout-<version>.tgz'

Usage

Open the conversation tile panel from the sidebar. The slim rail on the left contains two vertically centered buttons:

  • + New conversation: Uses the default workspace and inserts a card at the front. It will prefer an appropriate, unoccupied blank conversation if one is available; otherwise, it creates a new one. In-use, running, reserved, archived, and sub-agent conversations are not reused. Unsent drafts are preserved. For legacy profiles without a registered default workspace, the DSH Host default directory is used rather than a guessed or hardcoded path.
  • Choose sessions: Opens a searchable modal to select conversations and reorder them. Newly selected conversations are also prepended and become visible when the modal closes. Existing desktop cards remain mounted while the modal is open. The tile button in each conversation’s title row can also add or remove that conversation.

Layout Behavior

  • Desktop: Cards are arranged in a single horizontal row, each with a minimum width of 340 px. Overflow scrolls horizontally, and height fills the available area. Each card records its own pixel width. Cards without a saved width use the most recent manually adjusted width (default 380 px before any adjustment). Cards with a saved width retain their original size. Adding, removing, or reordering cards does not alter the widths of other cards.
  • Resizing & Reordering: Drag a card’s title handle to reorder. Each divider (including the trailing one) only adjusts the card to its left. Divider decorations appear on hover, focus, or drag. Double-clicking a card resets its width to 380 px. Height adjustment is not supported.
  • Mobile: One card is displayed at a time. Swipe in the non-interactive conversation area to switch, or use the previous/next buttons in the title row. Input fields, menus, code blocks, and the sidebar retain their own gestures.

Native Conversations & Persistence

Each card embeds a real same-origin DSH page, including native conversation controls, views, menus, enabled plugins, and the full right sidebar. Sidebar types such as Files, PDF, Web, and Terminal depend on the corresponding installed plugin. External card titles only replace the redundant embedded breadcrumb; native controls remain fully functional.

Selection, ordering, pixel widths, and the current root conversation binding are stored in localStorage. The active tile page marker uses tab-local sessionStorage: pressing F5 restores the panel if it was previously active, without forcibly opening it after you have explicitly navigated away.

Cards use a transparent structural layer over the shared external background and filters, while native input, menu, and dialog surfaces retain their own backgrounds to ensure readability. Embedded navigation is isolated from the external page’s “last opened conversation” preference; native drafts and other settings are preserved.

Limitations & Lifecycle

  • Same-origin iframes must be permitted by the DSH deployment and reverse proxy. Full native pages consume more memory and connections than chat-only views.
  • New views are lazy-loaded near the viewport. Loaded desktop views remain mounted when scrolled out of view; removing a card or leaving the panel unmounts the views.
  • Switching mobile cards remounts the native page. Persisted native drafts can be restored; scroll position is not guaranteed to be preserved.
  • Layout preferences are browser-local and do not support cross-device synchronization.
  • Closing a card only removes it from the layout; it does not delete, archive, or stop the conversation. Unselected blank conversations are filtered out in the selector; filtering and reuse are not cleanup or deletion, and reuse does not clear drafts.

Use Cases & Notes

Ideal for developers and agent engineers who need to view and compare multiple conversations in parallel, especially when using different plugins, sidebar features, or keeping native controls accessible simultaneously.

The plugin runs with the current DSH process permissions. It is recommended to review the source code and license (MIT) before installation.

Summary

This plugin stores layout state locally in the browser, enabling side-by-side viewing of multiple native conversations in DSH Web with independent width and ordering adjustments.

  • Plugin directory: https://www.skillhub.cn/plugins/nzlov/dsh-tile-layout
  • Source repository: https://github.com/nzlov/dsh-tile-layout
羽毛球分组比赛记分
小程序二维码

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

Xiaoye