dsh-sidebar-hover: Hover-Preview Sidebar and Session History Navigation

Preface

When switching between sessions and workspaces in DeepSeek Harness (DSH) for extended periods, a permanently expanded sidebar narrows the main content area; a fully collapsed sidebar requires clicking to expand before the list can be viewed. Desktop clients like Claude Code commonly employ a sidebar interaction model of “brief hover preview, collapse after selection, click to pin,” whereas DSH’s native sidebar defaults to an expand/collapse click logic and lacks browser-style forward/backward session navigation stacks.

Below we introduce the community plugin dsh-sidebar-hover (maintained by ingeb0rga), which replicates such behavior on the DSH client UI: hover-to-peek narrow track preview, click-to-pin, auto-collapse after session selection, plus session history arrows and shortcuts in the macOS desktop version. The plugin is classified as a client extension, currently has 0 GitHub stars, is licensed under MIT, and is at package version 0.1.24.

What Is This

dsh-sidebar-hover is a runtime client plugin for DSH (client-UI extension). It does not modify server-side protocols but mounts logic onto the sidebar and title bar areas rendered by the host: hovering over the collapsed sidebar track (or the sidebar toggle area in the title bar on macOS) triggers an intention delay, then previews the expanded sidebar as an overlay without pushing the main content to reflow; after the pointer leaves, a grace period elapses before it collapses; clicking the sidebar toggle while in preview state pins it expanded until clicked again to close.

The plugin also implements session history arrows (← →): since DSH itself does not maintain navigation history, the plugin records uiWorkspace.selection on the client side to form a session-level forward/backward stack of up to 100 entries and navigates via uiWorkspace.openSession(). This capability is marked as available on macOS desktop in the README; the Web (dsh web) sidebar hover and settings page share the same client code, but the README states that Web hover and settings were not live-tested, and history arrows with ⌘[ / ⌘] are unavailable in browsers.

Core Features

Hover Preview and Pinning

Hover to reveal sidebar is enabled by default. Key behaviors (consistent with the README’s “Behavior” table):

  1. Hover over the sidebar track or (darwin) sidebar toggle icon, and after a configurable intent delay (default implementation around 180 ms, configurable range 50–1000 ms) enters peek mode.
  2. During peek, the layout internally still has the sidebar expanded, but the frame grid is pinned to the collapsed track via overlay, with the wide sidebar drawn on top of the content as an opaque fill with shadow.
  3. After the pointer leaves peek, a 250 ms grace period collapses it; re-entering cancels the collapse.
  4. Clicking the sidebar toggle in peek → pinned; sidebars opened or pinned by click ignore hover until closed.
  5. Selecting a session/workspace row, New Session, Settings, or pressing Esc in peek → immediate collapse (controls with stopPropagation in the row are unaffected).
  6. Mod+B in peek can close it; Mod+B / toggle triggered by user or host is treated as external collapse, and the plugin does not take over control.

DSH starts with the sidebar expanded by default; if the feature is enabled when preferences are first loaded, the plugin collapses once so the hover logic is immediately available; enabling the feature mid-session does not force a collapse.

Session History Arrows (macOS Desktop)

Session history arrows enabled by default. The ← → buttons are placed to the right of the sidebar toggle via shell.overlay; the desktop registers ⌘[ / ⌘] shortcuts (releasing to the host when no history is available). Deleted or unopenable entries are discarded from the stack.

Settings and Persistence

Dedicated settings page: Settings → Sidebar hover, containing:

  • “Hover to reveal sidebar” toggle (default ON) and hover delay;
  • “Session history arrows” toggle (default ON).

Preferences are written to the host settings namespace dsh-sidebar-hover in volatile fields (enabled, hoverDelayMs), read/written via the plugin routes POST /sidebar-hover/api/prefs.get and POST /sidebar-hover/api/prefs.update on the node side, and landed in the profile’s cordis.patch.yml corresponding config: block (path like ~/.dsh/profiles/<name>/cordis.patch.yml). In desktop deployments, the renderer process cannot directly call the settings remote, so the plugin HTTP routes act as a proxy.

Platform and Test Coverage

Capability matrix summary from the README:

Capability Desktop (macOS) Web (dsh web)
Hover peek Hover sidebar toggle beside traffic lights Hover 56 px collapsed track (not live-tested)
History arrows ← → Yes No
⌘[ / ⌘] Yes No (occupied by browser)
Settings → Sidebar hover Yes Same code path (not live-tested)

Tested on DeepSeek Harness macOS desktop 0.2.0-rc.2, 0.2.1-rc.2. Windows / Linux desktop builds not tested.

Installation and Activation

The plugin injects client modules via DSH’s Cordis bundle (cordis.patch.yml); the manifest specifies client.platform as web and depends on host slots like @deepseek-ai/dsh-client-ui-sidebar, @deepseek-ai/dsh-client-ui-settings.

The GitHub README and package.json fragments referenced here do not provide a complete CLI installation command. For installation steps, refer to the community directory SkillHub plugin page and GitHub repository README current instructions; do not construct dsh plugin add parameters not documented.

After installing and loading the plugin, open Settings → Sidebar hover in the application to toggle features and adjust delays. Peer dependencies require @deepseek-ai/dsh-client-store and @deepseek-ai/dsh-client-ui-primitives at >=0.2.0-rc.2 <0.3.0-0, consistent with the tested host version line.

Typical Usage

  1. Daily session list browsing: Keep the sidebar collapsed to enlarge the editing area; move the pointer to the sidebar toggle on the title bar side in macOS (or the 56 px collapsed track in Web), pause briefly to preview the list; move the pointer away, and the sidebar automatically retracts.
  2. Pin sidebar for editing: Click the toggle during preview to pin the sidebar expanded; after closing again via toggle click or Mod+B, hover preview becomes available again.
  3. Select and go: Click a session or workspace in peek, the sidebar collapses immediately and enters the target view.
  4. Backtrack views on macOS: Use title bar ← → or ⌘[ / ⌘] to move forward/backward in the plugin-maintained selection history stack (desktop only and when the toggle is enabled).

Use Cases and Notes

Suitable for: Users primarily working in the DSH desktop client (especially macOS), wanting sidebar interaction similar to Claude Code, and needing to quickly switch between multiple session/workspace views.

Notes:

  • The plugin code runs under DSH process permissions; read GitHub source and the MIT license before installation, and confirm compatibility with the current DSH version.
  • It intentionally does not modify host behaviors such as sidebar geometry, track width, darwin title bar contracts, Mod+B bindings; if enabled alongside another sidebar-type plugin, verify conflicts yourself.
  • SkillHub is a community plugin directory, with no official affiliation to DeepSeek / High-Flyer; stars and versions are subject to the repository (currently 0.1.24).
  • Hover and arrow behaviors on non-macOS or untested platforms should be based on actual performance; report issues in the repository Issues if needed.

Conclusion

dsh-sidebar-hover brings hover preview, click-to-pin, select-to-collapse, and macOS session history navigation to the DSH client sidebar, with settings centralized in Settings → Sidebar hover. Directory and documentation links:

For more detailed integration analysis and QA matrices, see FINDINGS.md, QA-CHECKLIST.md, and DEVELOPMENT.md in the repository.

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

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

Xiaoye