dsh-bottom-dock: Relocating the DSH official right-side dock to the bottom edge

Preface

In DSH Web, capabilities such as the terminal, file tree, and document preview are typically concentrated in the official right-side dock. Developers accustomed to the “conversation on top, tools on the bottom” layout often need to frequently shift their gaze between left and right; furthermore, if one desires the conversation area to occupy the full width, having a column on the right encroaches on horizontal space. The approach taken by the community plugin dsh-bottom-dock (maintained by rsdgnchen) is: instead of creating a separate set of terminals or previews, it repositions the entire official dock to the bottom of the screen. It is summoned via an iOS-style swipe-up bar and supports dragging to adjust height. This article covers its positioning, the official hooks it relies on, installation methods, and usage notes.

What is this

dsh-bottom-dock (npm package name @rsdgnchen/dsh-bottom-dock, version 0.1.0 in current materials) is a Web Client plugin for DSH, categorized as a client-side injection. It does not modify official business code: the panels are still rendered by official components and driven by official data streams; the plugin only injects CSS and a small amount of UI to alter the dock’s positioning and grid, changing the “slide in from the right” behavior to “rise up from the bottom.” Opening and closing still utilize public APIs: ctx.sidebarRight.isExpanded() / toggleExpanded().

When the official DOM structure cannot be detected, the plugin remains completely lazy—it injects no styles, renders no additional nodes, and simply reports the reason to the Host diagnostic endpoint; the worst-case scenario is that the plugin does not take effect, rather than breaking the interface.

Core Functionality

The following features are described in the README and are consistent with implementation highlights.

Whole Move, Not Dual Track

The official right sidebar is a single panel (terminal / file tree / document preview / tabs / guides switch on the same screen); it can only exist in one location at a time. This plugin chooses to relocate it entirely: the official dock, along with all tabs and buttons, settles at the bottom of the page, creating a main interface of “conversation on top + everything else on the bottom.” The README explicitly states: to coexist with “bottom terminal + right preview,” a separate terminal implementation (e.g., self-rendering based on ctx.webTerminals) is required, which differs from this plugin’s design trade-off.

Interaction and Layout

  • An iOS-style swipe-up bar is provided at the bottom to summon the dock; it supports dragging to adjust height and tapping to collapse.
  • The collapse/expand animation uses translateY(100%) ↔ no offset, and reuses the official visibility delay to avoid flickering disappearance during collapse.
  • When expanded, the conversation area padding-bottom is set to the dock height plus the 8px drag bar; when collapsed, it is 8px; in official fullscreen mode, it yields space with 0 padding.
  • Official fullscreen panels (data-sidebar-right-panel="fullscreen") yield completely and are not subject to this plugin’s rules.

Reliance on Official data-* Contracts

The plugin relies only on stable hooks listed in the README, avoiding hash class names:

Hook Usage
[data-shell-overlay] Layer for mounting plugin UI (shell.overlay slot)
[data-rightbar-col] Official right sidebar column; Health check anchor. If not found, the plugin does not intervene at all.
[data-sidebar-right-panel="push"] Dock panel, repositioned to the bottom
[data-sidebar-right-panel="fullscreen"] Official fullscreen mode; not intervened by the plugin
[data-sidebar-right-open] Expanded state, driving the rise-up animation and UI switching

Security and Diagnostics

If browser-side detection fails or opening/closing fails, it reports to POST /__rsdgnchen-bottomdock/error; the Host side appends this to the file pointed to by the environment variable $RSDGNCHEN_BOTTOMDOCK_ERROR_LOG (default: os.tmpdir()/rsdgnchen-bottomdock-errors.log).

Installation and Enablement

The plugin runs with the current dsh process permissions; before installation, it is recommended to review the GitHub repository source code and the MIT license yourself. The Node engine requirement is >=20 (from package.json).

The repository is tagged with the GitHub dsh-plugin topic. Run on the Host:

dsh plugin --profile web add github:rsdgnchen/dsh-bottom-dock
pm2 restart dsh        # Restart required for new plugin lines (Both Host-side and Client boot graph are assembled at startup)

Local Source Installation (Development/Debugging)

dsh plugin --profile web add file:$HOME/dsh/plugins/dsh-bottom-dock
pm2 restart dsh

After the above steps, the Web Client boot graph will include this plugin’s Cordis patch and client injection (depending on @deepseek-ai/dsh-client-runtime, dsh-client-ui-layout, dsh-client-ui-sidebar-right, dsh-api-session-controller, etc., see package.json).

Typical Usage

This plugin has no separate configuration file fields; once active, usage is consistent with the official right dock, except the entry point and position are changed to the bottom bar:

  1. In the Web interface, swipe up or click the bottom bar to summon the dock (internally still calls toggleExpanded()).
  2. Switch between official tabs such as terminal, file tree, and document preview within the dock; behavior is identical to the right sidebar.
  3. Drag the bar to adjust dock height; tap to collapse.
  4. If official dock fullscreen is needed, use the official fullscreen mode; the plugin does not override layout for this mode.

Applicable Scenarios and Notes

Who it is for: Developers who wish to retain all official dock capabilities in DSH Web but prefer a bottom layout and want the conversation area to utilize maximum horizontal width.

Important Notes:

  • Functional overlap with @rsdgnchen/dsh-terminal (which comes with its own bottom terminal). Enabling both simultaneously will result in two bottom bars. When trying this plugin, the README suggests temporarily disabling the old terminal plugin in the profile’s cordis.patch.yml:
- id: dsh-rsdgnchen-terminal
  disabled: true

To roll back, remove the above configuration and restart.

  • The DSH ecosystem philosophy is “Everything is a plugin”; the community directory SkillHub Plugin Page is an independent site and has no official affiliation with DeepSeek / High-Flyer. The installation source depends on the repository and commands you trust.

Conclusion

dsh-bottom-dock uses official data-* hooks and the sidebar API to migrate the right dock entirely to the bottom. It remains lazy when structural mismatches occur, making it suitable for trial as a layout-preference client plugin for the Web. For further information, visit the SkillHub Directory Page and GitHub: rsdgnchen/dsh-bottom-dock.

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

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

Xiaoye