dsh-rail-zero: Clearing the 56px empty rail left by the collapsed DSH sidebar

The left sidebar width logic in DeepSeek Harness (DSH) is hardcoded in the @deepseek-ai/dsh-client-ui-layout AppFrame. On macOS, the width becomes 0 when collapsed; however, on Windows/Linux, a 56px empty track is always retained when collapsed, squeezing the usable space in the conversation area. dsh-rail-zero is a browser-side patch plugin designed to fix this issue.

What Is This

Maintained by HelloQingTao, this plugin falls under the “fun customization” category. It uses pure browser-side CSS/DOM manipulation to zero out this 56px empty track and return the space to the conversation area. The plugin does not modify any DSH source code or bundle files, nor does it depend on any host API or peer dependencies.

Core Features

Only Rewrites the First Segment of grid-template-columns

The plugin only rewrites the first segment of the inline grid-template-columns style within the sidebar container, using !important to override the original inline styles. The right panel tracks are unaffected. To counter React re-renders, the plugin internally uses MutationObserver to reapply styles and includes an anti-loop mechanism.

Three-Level Expansion Control, Never Duplicated

The plugin provides an expand button and automatically selects the optimal implementation based on the environment to avoid conflicts with existing buttons:

  1. Prefer dsh-qol reuse: If dsh-qol is installed, the plugin will automatically detect and use its persistent hamburger button in the top bar (.astb-sidebar-toggle), and the plugin’s own button will be hidden.
  2. Use the official button: If dsh-qol is not installed, the DSH official sidebar toggle button is used.
  3. Fallback button: If neither dsh-qol nor the official button is present, a 26px floating button “»” will appear in the upper left corner as the final means of expansion.

Zero Dependencies and Pure Browser-Side

The plugin does not require any host modules, avoiding client-modules version drift issues, and runs entirely in the browser.

Installation and Activation

Install by running the following command in the terminal:

dsh plugin --profile web add dsh-rail-zero

After installation, restart dsh web to enable it. Uninstalling the plugin fully restores the original state.

Use Cases and Notes

This plugin is suitable for developers who want to maximize the width of the DSH conversation area on Windows/Linux environments.

  • Platform differences: Only macOS completely hides the sidebar track; on Windows/Linux, the track width is 0 when collapsed, but space is visually retained.
  • Coexistence: It can coexist with dsh-qol, dsh-better-sidebar, and dsh-sidebar-qa without conflicts.

Summary

For DSH users who pursue a clean interface and want to maximize conversation area width, dsh-rail-zero provides a lightweight solution. It does not intrude into DSH source code, works immediately upon installation, and fully restores upon uninstallation.

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

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

Xiaoye