dsh-chat-rail: Web-style Vertical Navigation Rail on the Right Edge of the Chat Area

Preface

When developing long sessions in DeepSeek Harness (DSH), as messages accumulate, the cost of scrolling or flipping through messages one by one to find human questions rises significantly. The DeepSeek web version has a vertical rail on the right edge of the conversation column: each user message corresponds to a short horizontal dash, which expands into a list when approached and allows jumping to that message. The Harness’s built-in chat view does not include this control.

Below is an introduction to the community client plugin dsh-chat-rail (maintainer: Stellight, category: client). It replicates this kind of navigation rail on the right edge of the conversation area and, given the limitation that Harness only holds a “window” of the conversation log, provides the ability to load earlier history before expanding the dashes.

What Is This

dsh-chat-rail is a static dual-face plugin for DSH: the Host side dsh/index.js is an empty implementation, and all functionality resides in the browser-side dsh/client.js, mounted via a frame-level overlay shell.overlay, requiring no Host injection approval.

Data comes exclusively from public client contracts (props.useSessions, session binding snapshots, structured anchors like [data-chat-flow] published by the chat view), with no round-trip requests to the Host.

  • Directory page: https://www.skillhub.cn/plugins/Stellight/dsh-chat-rail
  • Source code and documentation: https://github.com/Stellight/dsh-chat-rail
  • License: MIT (package.json version 1.0.0, Node >= 20)

Core Features

Idle State and Hover Panel

A column of gray short dashes on the right, with the one in the current viewport colored brand blue; the rail has an extremely subtle capsule background and does not obscure the main content.

When the mouse approaches or the rail is focused, a rounded panel expands to the left, listing all human messages in the current session (the current item highlighted in blue; overly long text is truncated with an ellipsis, and the full text is shown on hover). Clicking a dash or a list row scrolls the corresponding message back to the top of the viewport (the jump padding is controlled by JUMP_OFFSET, default 16px).

Layout Following

The rail re-measures when the sidebar collapses or expands, when the detail pane changes, when the input box grows, or when the window is resized. The rail sticks to the right edge of the content column, relying on anchors such as [data-chat-flow] published by the chat view for positioning, without hardcoding layout class names.

When there are many messages, if the dashes still cannot fit at the minimum spacing, they are proportionally sampled, with the top and bottom dashes always retained, and the rail never extends beyond the chat column; the panel still lists all messages.

Backtracking Earlier History

The client only holds a window of the conversation log, so the rail can only reflect the already loaded portion. If there is earlier history, the top of the panel displays ↑ Load earlier messages:

  1. Clicking once extends the window one page forward, and new dashes appear accordingly;
  2. After loading completes, the view scrolls to the latest message in the just-loaded batch, making it easier to continue reading further back;
  3. The panel can be clicked repeatedly to page all the way to the bottom.

Panel interactions: it expands when the pointer is over the rail or the panel; when the pointer leaves and the panel is not pinned, it collapses after CLOSE_DELAY_MS (default 160ms); any click inside the panel pins it; Escape or clicking outside collapses it; clicking a message to jump then collapses it; it does not collapse during loading.

Installation and Activation

The installation commands come from the repository README and are executed in the plugin package directory (installed into the web profile by default):

node tools/install.mjs              # Install into the `web` profile by default
node tools/install.mjs --profile web
node tools/install.mjs --remove     # Uninstall

The script copies the package to <profile>/node_modules/dsh-chat-rail, registers dependencies and dsh.profile.bundles in <profile>/package.json, and leaves a package.json.bak.

After installation, you need to restart the harness (dsh web) and refresh the page: the profile’s bundle is composed at startup, and the new bundle will only be mounted on the next startup. After that, if you only modify dsh/client.js, simply refresh the page (/plugins/... is read from disk per request).

The plugin runs in the current DSH process and browser context; before installation, it is recommended to read the source code and the MIT license to confirm compliance with your environment policies.

Typical Usage

  1. Complete the installation as described in the previous section and restart dsh web, then open a conversation tab.
  2. In a session with at least one human message (or with earlier history that can still be loaded), view the rail and dashes on the right edge of the chat column; hover to expand the list, and click an entry to jump.
  3. In a long session, click ↑ Load earlier messages at the top of the panel to expand the visible dashes and continue reading upward.

Tunable parameters are concentrated in the constants at the top of dsh/client.js, such as dash dimensions (DASH_HEIGHT / DASH_WIDTH), spacing (DASH_GAP_MAX / DASH_GAP_MIN), RAIL_CLEARANCE, ACTIVE_THRESHOLD, CLOSE_DELAY_MS, etc. When troubleshooting “the rail should appear but does not”, you can temporarily set DIAGNOSTIC to true (default false); this mode sends a self-check report to the session via session.prompt and may trigger an agent reply, so it should be reverted to false after troubleshooting.

The repository provides local validation:

node test/smoke.mjs      # Browser half: synthetic DOM + real React rendering
node test/manifest.mjs   # Text rewriting of profile manifest used by the install script

Use Cases and Notes

Suitable for: developers who frequently engage in long conversations in the Harness web client and want to quickly jump between human messages using a rail similar to the web version.

Notes:

  • For empty sessions, sessions with no human messages in the window and no earlier history, the rail will not appear; this is expected behavior.
  • If the rail does not appear after installation: a common cause is that the harness was not restarted, so the startup graph was compiled before this bundle.
  • If startup reports cannot resolve profile bundle: check whether the package directory is missing under <profile>/node_modules.
  • The community directory SkillHub is an independent site with no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem philosophy is “everything is a plugin”, and this plugin is a community-contributed client bundle.

Closing

dsh-chat-rail provides a DeepSeek web-style navigation rail on the right edge of the DSH conversation column, and supports loading earlier history under the Harness session window mechanism. Installation relies on tools/install.mjs in the repository; after installation, restart dsh web and refresh to use it.

  • Directory: https://www.skillhub.cn/plugins/Stellight/dsh-chat-rail
  • GitHub: https://github.com/Stellight/dsh-chat-rail
羽毛球分组比赛记分
小程序二维码

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

Xiaoye