dsh-sidebar-fold-37: DSH Sidebar Collapses Extra Panels into a Single "More" Row

Preface

DeepSeek Harness (DSH) desktop client follows the “everything is a plugin” philosophy: every plugin registers a panel row in sidebar.panellist. When there are too many plugins, the sidebar is filled vertically, leaving less height for the workspace and session list. Common practices are to endure scrolling or manually close unused plugins, but there is no built-in ability to “collapse into a single row, expand when needed”.

Below introduces the community client plugin dsh-sidebar-fold-37 (maintainer wqx11235): it collapses all panel rows except the ones you specify to keep outside into a single “More” row; it expands downwards on hover or click; right-click allows you to check which panels to keep outside in the settings page.

What is this

dsh-sidebar-fold-37 is a DSH client plugin (bundle) targeting the Web platform. After installation, it performs folding at the sidebar DOM layer and does not rely on the host-provided “collapse to a single row + inline expand” official API.

The core problem it solves: the sidebar keeps only the “Plugins” row and the rows you checked to “Keep outside”, plus a “More” row; the panel rows registered by other plugins are collapsed into “More”. They expand downwards in place when needed, without covering the chat area.

Core Features

The following behaviors are based on the repository README.

  • By default, the sidebar mainly keeps the “Plugins” and “More” rows; the rest of the panel rows are collapsed into “More” (you can check some panels to keep outside in settings).
  • Collapsed rows are hidden via display:none; the expanded block is inserted after the “More” row and is a normal DOM node, not a floating layer.

Expand and Collapse

  1. Hover over “More” for about 120ms, or click directly → It expands in place below “More”, pushing the content below down, similar to Workspace expansion.
  2. Expanded items show the original panel icon and name; the current panel has a background color. Clicking an item jumps to that panel and collapses.
  3. It automatically collapses after about 150ms of the mouse moving away; clicking elsewhere on the page or pressing Esc also collapses it.
  4. The host’s built-in “More” also appears in the expanded block. When clicked, it first temporarily moves to the position you clicked before triggering, and the original host menu pops up at that location.

Settings and Persistence

  • Right-click “More” to enter this plugin’s settings page: check which panels to keep outside the sidebar, and the rest will be collapsed into “More”.
  • The check results are stored in localStorage with the key name dsh-sidebar-fold.keep; they are retained after restarting the application. Clearing the browser cache will revert to default (only keeping “Plugins” outside).

Integration with the Host

The plugin package comes with cordis.patch.yml (the insert id is sidebar-fold). Events are attached in the capture phase of document to ensure listeners don’t fail after the host re-renders and replaces row nodes; propagation is intercepted on click to prevent the host from mistakenly calling a non-existent selectPanel('sidebar-fold') and throwing an error.

Installation and Enabling

This is a bundle plugin. It needs to be packed from the source directory first, then given to the DSH plugin manager for installation; do not manually concatenate commands like dsh plugin add github:... based on the plugin name (the documentation does not provide this syntax).

1. Packing

Execute in the root directory of the cloned or downloaded repository:

npm pack

It will generate a compressed package similar to dsh-sidebar-fold-37-0.7.0.tgz (the README example filename contains 0.7.0; current package.json is 0.7.2, use your local npm pack output as the standard).

2. Installing the Bundle

Use install_bundle via the plugin manager, with the target using the absolute path of the tgz:

install_bundle  file:D:/path/to/dsh-sidebar-fold-37-0.7.0.tgz

Replace the path with the actual absolute path on your machine.

3. Taking Effect

After installation, restart the DSH application. The cordis.patch.yml will be injected with the package, and the sidebar folding logic will mount.

Typical Usage

  1. After installing and restarting, open the sidebar: except for “Plugins” and the panels you checked to keep outside in settings, you should see a single row “More”.
  2. Hover or click “More”: The collapsed panel list expands below; clicking an item enters the corresponding panel.
  3. Right-click “More”: Open settings, check the panels you want to always appear in the sidebar (for example, a frequently viewed plugin panel), and save; the rest will still go into “More”.
  4. If sidebar behavior is abnormal, you can troubleshoot whether the localStorage was cleared or if the host sidebar DOM structure has changed in subsequent versions (see limitations below).

Developer Self-Check (not required for end users): The repository provides npm test (jsdom + React 18) and an optional npm run diag (listens for plugin diagnostics on the local machine 127.0.0.1:18555); requests will fail if the diagnostic service is not running, but this does not affect normal use.

Applicable Scenarios and Notes

Who is it for

  • DSH desktop users who have many sidebar plugins and want to fixably display “Plugins” and a few common panels, collapsing the rest into a single “More” row.
  • Users who prefer inline expansion (not covering the chat area) rather than additional floating layer menus.

Permissions and Security

The client plugin executes within the page with the current DSH process and can read/write the sidebar DOM and localStorage. Before installing, you should browse the GitHub repository source code and the MIT license to confirm that the DOM patching and storage methods are acceptable. The community directory SkillHub is an independent site with no official affiliation with DeepSeek or Hyperscience.

Known Limitations (README)

  • Pure DOM Implementation: It may fail if the host updates and changes structures like <nav aria-label="全局面板">.
  • Collapsed rows are not friendly to screen readers; expanded items have a tab order, but focus is not actively moved into the expanded block.
  • After the localStorage key dsh-sidebar-fold.keep is cleared, the default behavior is to keep only “Plugins” outside.

Conclusion

dsh-sidebar-fold-37 collapses the panel rows registered by plugins in the sidebar into a single “More” row, expands in place on hover or click, and allows configuration of which panels to keep outside via right-click. It is suitable for scenarios with many installed plugins where you want to reserve vertical space for the workspace. Refer to the repository README for details and updates.

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

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

Xiaoye