Preface¶
The DeepSeek Harness (DSH) left sidebar lists multiple global panels: Plugins, Scheduled Tasks, Context, Market, etc., each occupying a row. As more panels accumulate, the vertical space of the sidebar gets filled up, squeezed together with fixed entries like “New Session”, making browsing and switching less compact.
The community plugin dsh-sidebar-panel-fold (maintainer: ACGsu, category: client) does not modify the official package; it only adds “collapse / expand” and overlay switching to existing panels, remaining identical to the native behavior when expanded by default. Below introduces what it does, how to install it, how to use it, and the limitations to be aware of before installation.
What Is This¶
dsh-sidebar-panel-fold is a standard DSH bundle package that declares dsh.bundle.patch. After being installed into a profile, it automatically joins dsh.profile.bundles without manual configuration changes.
In one sentence: it collapses the global panel list of the DeepSeek Harness sidebar into a single row; when collapsed, clicking that row opens an overlay where you can switch panels. Current version 0.1.0, license MIT. GitHub stars: 0 (as shown on the directory page).
The Host side uses @deepseek-ai/schemastery for the configuration schema (peer, optional); the client runtime has no third-party dependencies and does not modify app.asar or any official built-in files.
Core Features¶
Expand and Collapse¶
- After installation, a “Collapse Panels” row appears above the global panel list.
- Clicking it collapses the entire panel column into a summary row: the icon corresponds to the currently active panel, and the text is the current panel name.
- To expand again, select “Expand Panels” at the bottom of the overlay, or click the “Collapse Panels” row again while in the expanded state (see the “Usage” table in the README).
Switching Panels in Collapsed State¶
Clicking the summary row opens an overlay listing all panels; the current item is marked. Clicking any item switches to that panel, closes the overlay, and the sidebar remains collapsed.
State and Theme¶
- State persists across restarts: The
foldedstate is persisted through the DSH Host-side settings channel, surviving port changes and endpoint changes (requires correct installation method, see below). - Narrow rail mode: When the sidebar is collapsed to only icons, this plugin’s row also displays only an icon, and the overlay remains usable.
- Styling: Uses DSH design tokens (such as
--dsw-alias-label-primary) to adapt to light and dark themes.
Compatibility (From Original Documentation)¶
| Item | Description |
|---|---|
| DSH Version | engines.dsh: ">=0.2.0-rc.2" |
| Verified Environment | DSH 0.2.1-rc.2, Desktop (Windows 11) / Web |
| Platform | Web and Desktop share dsh.client.platform = "web" |
Installation and Enablement¶
This plugin is assembled into the profile via bundle patch at startup. After installation, you need to fully exit and restart DeepSeek Harness (not just refresh the page).
For Web profile installation from GitHub:
dsh plugin --profile web add github:ACGsu/dsh-sidebar-panel-fold
For Desktop default profile, when installing from a local directory, the README recommends using file: instead of link::
dsh plugin --profile desktop add "file:/path/dsh-sidebar-panel-fold"
You can also select “Install from Local Path” in the “Plugins” panel and point to the plugin directory; the manager will validate dsh.bundle and then reconcile it into bundles.
After successful installation, the console should display:
[dsh-sidebar-panel-fold] client loaded v0.1.0
If a schemastery is not resolvable warning appears, it usually means link: was used for installation; the plugin will still work, but the collapsed state may not persist across restarts. You should reinstall using file:.
Security Note: The plugin runs under the permissions of the current DSH process and injects styles and DOM into the page. Before installation, it is recommended to review the source code and MIT license on GitHub to determine whether you trust maintainer ACGsu.
Typical Usage¶
| Scenario | Action |
|---|---|
| Collapse panel list | Click the “Collapse Panels” row |
| Expand back to original | Click this row again while expanded (shows “Collapse Panels”) |
| Switch panels in collapsed state | Click summary row → select panel in overlay |
| Close overlay | Click outside the overlay, press Esc, or scroll the page |
Independent buttons like “New Session” are not part of the global panel list and are not affected by this plugin’s collapsing logic.
Use Cases and Notes¶
Who it’s for: Users who frequently switch between DSH Web and Desktop, have many sidebar panels, and want to save vertical space.
How it works (summary) (for risk assessment): The client inserts a control row before the nav corresponding to [data-slot="sidebar.panellist"]. When collapsed, it adds the class dsh-spf-folded to the nav to hide child nodes; the overlay menu triggers the original panel buttons’ click events to hand over to DSH’s built-in logic, without bypassing the official selectPanel.
Known Limitations (from README):
- Uses DOM injection, not the official “wrap entire nav” slot; if upstream changes the
navor[data-slot]anchor, constants insrc/client.jsneed modification. - The overlay is custom-drawn and does not reuse DSH’s non-exposed primitives like Tooltip.
- After collapsing, you cannot traverse panels on the hidden list using Tab; you need to open the overlay first.
- When the official hides the panel list in Windows title bar narrow rail mode, this plugin’s row will also be hidden.
Uninstallation:
dsh plugin --profile desktop remove dsh-sidebar-panel-fold
After a full restart, the cleanup function removes the injected styles, buttons, and listeners.
Conclusion¶
dsh-sidebar-panel-fold uses a summary row with an overlay to compress the sidebar’s global panel list without touching official packages, and tries to persist the collapsed state in Host settings. For details, troubleshooting, and development documentation, refer to the repository README.
- Community directory page: https://www.skillhub.cn/plugins/ACGsu/dsh-sidebar-panel-fold
- GitHub: https://github.com/ACGsu/dsh-sidebar-panel-fold