Introduction¶
The DeepSeek Harness (dsh) Web GUI retains a collapsed icon rail approximately 56px wide under narrow viewports. This leaves panels like the conversation page and plugin management with about one-seventh less horizontal space; when the sidebar is expanded, the main content area is squeezed into a very narrow column. If you primarily use Harness on mobile phones or narrow browser windows, this fixed placeholder and column squeeze are not user-friendly.
Below is an introduction to the community plugin dsh-hide-sidebar (maintainer winniesi): when the frame width is less than 1024px, it removes the persistent icon rail, replacing it with a top button to invoke the sidebar, which appears as an overlay drawer on top of the content; behavior on wide screens remains unchanged and consistent with the official ui-layout.
What is this¶
dsh-hide-sidebar is a plugin for the DeepSeek Harness Web Client (Category: Client). It only modifies frontend layout and interaction; it does not touch the model, file system, or transport layer. The host-side index.js is intentionally left empty, with logic concentrated in client.js.
- Directory Page: skillhub.cn/plugins/winniesi/dsh-hide-sidebar
- Source Code: github.com/winniesi/dsh-hide-sidebar
- Current Package Version: 1.0.0, License MIT
The DSH ecosystem emphasizes “Everything as a Plugin”; community directories like SkillHub are independent of DeepSeek / High-Flyer and are not official app stores. It is recommended to review the source code and license yourself before installation.
Core Features¶
Narrow Screen (Frame Width < 1024px)¶
The breakpoint is consistent with the auto-collapse feature built into ui-layout: 1024px. The comparison is based on the measured width of the frame, using the same measurement method as ui-layout to avoid inconsistencies between JS and CSS modes.
| State | Before Installation | After Installation |
|---|---|---|
| Collapsed | 56px icon rail persists, occupying about one-seventh of screen width | Icon rail disappears, content area occupies full width |
| Expanded | Sidebar takes one column, main content squeezed to ~110px | Sidebar is a drawer (width follows the grid’s first track, not hardcoded to 280px), overlaying content; content retains original width |
| Open | Small arrow on the rail | Button in the top-left corner: on the conversation page at conversation.header.leading; on other panels, floating at the top-left corner of the frame, with a 40px transparent left margin reserved on the panel root node |
| Close | Click the arrow again | Scrim, the sidebar’s own collapse control, or navigation actions like selecting a session / switching panels / clicking links |
The last item is a deliberate design choice: the drawer should automatically close after a session is selected, otherwise the just-selected content remains obscured. The plugin uses stable DOM hooks (such as data-row-key, data-slot, aria-expanded, aria-haspopup) to determine whether “this click is navigation or an expand control,” rather than relying on generated class names or text.
- Will close the drawer: Selecting a session, switching to global panels (like Plugins), Settings, New Session, clicking links, etc.
- Keep open: Controls that open sub-UIs (like Command Code quota card expansion, session action menus, session search, Workspace group rows) and inline nested actions (archive, pin); clicking on empty space also does not close it.
The sidebar component tree, scroll position, and portal are not unmounted; there will be no duplicate session lists or state loss.
Wide Screen (≥ 1024px)¶
The plugin remains in a dormant state: it does not render the top button, and layout rules only take effect under html[data-dsh-hide-sidebar] (this attribute is only written when the measured width is below the breakpoint). The sidebar remains docked, resizable, and collapsible, consistent with the official version.
Scrim and Layering¶
The scrim is attached to the frame’s shell.overlay, using the application’s built-in modal scrim tokens (such as --dsw-alias-bg-mask-1, --dsw-mask-blur), adapting to light and dark themes. The drawer has a z-index of 30, the scrim layer 20, dimming only the content, not the drawer.
Implementation Notes (For Troubleshooting)¶
- The toggle reuses ui-layout’s
ctx.layout.toggleSidebar(), reading state fromdata-sidebar-collapsedwithout duplicate storage. - The grid’s first track is compressed to 0px via CSS, while the sidebar column remains a grid item; the drawer slides in and out via
translateX(approx. 0.26s), closing withtranslateX(-101%). - The icon is a snapshot of
IconPanelLeftOutlineRegularcopied from@deepseek-ai/dsh-client-ui-primitivesto avoid Web startup failures caused by profile-installed plugins depending on internal dsh packages.
Installation and Activation¶
dsh dependency version range: >= 0.2.0-rc.1 and < 0.3.0-0 (must specify prerelease; ^0.2.0 cannot match 0.2.0-rc.2). Verification is performed via peerDependencies during installation and startup.
Web Environment:
# Install from GitHub
dsh plugin --profile web add github:winniesi/dsh-hide-sidebar
# Or local directory (pnpm creates a link, simply refresh the page after modifying client.js)
dsh plugin --profile web add /path/to/dsh-hide-sidebar
Refresh the browser page after installation; generally, no need to restart dsh.
Uninstall:
dsh plugin --profile web remove dsh-hide-sidebar
Desktop Electron App: Add the local directory via Settings → Plugins → Add plugin → Local directory, then restart the application. There is no --profile desktop; this profile is exclusive to the Electron app.
| Change Content | Activation Method |
|---|---|
client.js (drawer, button, styles, text) |
Refresh Browser |
package.json / cordis.patch.yml |
Usually live reloads/recomposes |
index.js (host-side, currently empty) |
Restart dsh |
Typical Usage¶
- Run the Web installation command on a machine with dsh installed (version within the range mentioned above).
- Open the Harness Web GUI and adjust the browser window or mobile portrait width to below 1024px (or use Developer Tools device mode).
- Confirm that the 56px icon rail is no longer on the left; click the sidebar button in the top-left corner, the sidebar should slide in from the left, and the content area should remain full-width and dimmed by the scrim.
- Click a session in the drawer or enter a panel like Plugins, the drawer should close; when expanding the Command Code quota card at the bottom of the sidebar, the drawer should stay open.
- Widen the window to 1024px and above, confirm there is no top toggle button, and the sidebar behavior is the same as when the plugin is not installed.
When the right panel is opened in mobile full-screen, the floating button is hidden (that panel has its own collapse control, and the narrow-screen sidebar is already collapsed when the right column is open).
Use Cases and Notes¶
Who is it for
- Developers or users who frequently use the dsh Web GUI on mobile phones or narrow browsers.
- Those who want the conversation and plugin management pages to occupy as much width as possible on narrow screens, rather than letting a 56px rail take up space permanently.
Notes
- The plugin is only injected into the client via
cordis.patch.ymlunder the Web profile; the hostindex.jsdoes not execute business logic, but the installation still occupies a plugin record line in the Loader. - The plugin runs with the current dsh process permissions; although this plugin does not modify the backend, you should still read the source code and MIT license before installing any community plugin.
- Requires Node.js >= 18 (see
package.jsonengines). - GitHub repository stars: 0 (as per community directory leads); this does not represent a conclusion on quality, but is only a reference for ecosystem visibility.
Conclusion¶
dsh-hide-sidebar transforms the Harness Web sidebar on narrow screens from a “persistent narrow rail + column squeeze” to “full-width content + on-demand drawer,” sharing the toggle state and 1024px breakpoint with ui-layout; there is zero interference on wide screens. If you need to switch sessions or enter plugin pages more smoothly on mobile, you can follow the commands above to install and refresh the page to verify.