dsh-sidebar-toggle: One-click Toggle for DSH Web Sidebar Group

Preface

The DeepSeek Harness (DSH) Web GUI sidebar supports two ways to display conversations: grouping by workspace (workspace) and a flat conversation list (flat). By default, switching usually requires going through the view options menu. If you frequently flip between viewing conversations in multiple workspaces and the flat list, repeated menu operations will interrupt your flow. The dsh-sidebar-toggle plugin introduced below is a client-side plugin released by maintainer john-walks-slow: it uses a global shortcut key or a click on the sidebar group title to directly invoke the host’s native setGroupBy, keeping the same state as the menu switch.

What Is This

dsh-sidebar-toggle targets the DSH Web interface and solves the problem of a “too-long path to switch the sidebar grouping mode”. The plugin does not add new grouping logic; it only reuses the WorkspaceViewStoreHandle on the Cordis slot sidebar.workspaces to toggle between workspace and flat. The host-side apply is an empty implementation; all interaction is completed in lib/client.js on the browser side. The current version of the npm package is 0.1.0, licensed under MIT.

Core Features

Shortcut Key Alt+R

Press Alt+R anywhere on the page to toggle the grouping mode (workspace ↔ flat). The plugin detects the IME composition input state (e.isComposing || e.keyCode === 229) to avoid accidental triggering while selecting words in IMEs such as Chinese.

Click the Group Title

The sidebar top title (Chinese “会话”/”工作区”, English Sessions / Workspaces, corresponding to the selector [class*="sectionHeader"] [class*="sectionLabel"]) shows a pointer cursor, and the opacity changes to 0.8 when hovered. Clicking the title text toggles the mode; if the title is in the hidden state sectionLabelHidden, the click is ignored.

State and Logs

Each toggle calls the host’s actions.setGroupBy() and prints one line to the browser console, for example:

[dsh-sidebar-toggle] groupBy: workspace -> flat
[dsh-sidebar-toggle] groupBy: flat -> workspace

Installation and Activation

It is recommended to install the prebuilt package from npm without additional configuration changes; the bundled cordis.patch.yml is mounted automatically, so simply refresh the Web page to use it:

dsh plugin --profile web add dsh-sidebar-toggle

If you want to install from GitHub source (the package contains a prepare build; pnpm ≥ 10 may require approving the build script on first install):

dsh plugin --profile web add github:john-walks-slow/dsh-sidebar-toggle
# If pnpm blocks the build script, follow the prompt to run pnpm approve-builds, or add dsh-sidebar-toggle
# to allowBuilds / onlyBuiltDependencies in ~/.dsh/profiles/web/pnpm-workspace.yaml, then rerun

Typical Usage

  1. Install the plugin and refresh the DSH Web page.
  2. When you need a flat view of all conversations, press Alt+R, or click the sidebar group title such as “会话” / “Sessions”.
  3. When you need to group by workspace, press Alt+R again or click the same title again.
  4. Open the developer tools console to verify that the [dsh-sidebar-toggle] groupBy: ... logs match the interface.

For local debugging, you can link the plugin into the web profile via link::

dsh plugin --profile web add link:/path/to/dsh-sidebar-toggle

Use Cases and Notes

Who it’s for: Developers who manage multiple workspaces in the DSH Web GUI long-term and need to quickly switch between the flat list and the grouped view.

Permissions and compatibility: A purely client-side plugin with zero npm runtime dependencies; no external services, no network requests, no local file reads/writes, and it does not read conversation content. Store resolution is wrapped in try/catch; if the sidebar is not mounted or the DOM structure changes, operations silently no-op without blocking the page. On deactivation or hot reload, listeners and injected styles are removed via ctx.effect and window.__dshSidebarToggle.dispose().

Before installing: The plugin loads with the current DSH process and Web environment. Before installing, you should review the source code and MIT license of the GitHub repository yourself to confirm it fits your usage habits. The DSH community plugin catalog (SkillHub plugin page) is maintained by the community and has no official affiliation with DeepSeek / High-Flyer (幻方).

Summary

dsh-sidebar-toggle collapses the sidebar workspace / flat switch into an Alt+R press or a single click on the title, sharing the same state as the host view menu. For more information, see the catalog page skillhub.cn/plugins/john-walks-slow/dsh-sidebar-toggle and the source code at github.com/john-walks-slow/dsh-sidebar-toggle.

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

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

Xiaoye