Skip to main content
G

dsh-sidebar-menu-fold

google-q-dot/dsh-sidebar-menu-fold

Collapsible, searchable left-sidebar function menu for DeepSeek Harness without forking the official sidebar.

Install

dsh plugin --profile web add github:google-q-dot/dsh-sidebar-menu-fold

README

dsh-sidebar-menu-fold

中文说明

A lightweight, zero-fork DeepSeek Harness (DSH) plugin that folds the global function/plugin launchers above your session list into a compact toggle bar with instant search.

Why use this alongside DSH 0.2.2+?

When you install multiple DSH plugins (Plugins, Market, Schedules, MCP Connectors, SSH, Skills, Workflows, etc.), the global panel list pushes your workspace & session list down the left sidebar.

While DSH 0.2.2+ introduced in-memory unpinning and scroll handoff, dsh-sidebar-menu-fold solves the remaining workflow friction without modifying or replacing DSH's official sidebar:

  • Persistent collapse across reloads: Starts collapsed by default and remembers your expanded/collapsed state in localStorage (dsh.sidebar-menu-fold.v1).
  • Instant search: Filter function launchers by Chinese, English, case-insensitive, or full-width/half-width characters (NFKC), plus multi-term space-separated matching.
  • Keyboard-friendly:
    • Expanding focuses the search input automatically.
    • Enter opens the entry directly when filtered down to a single match (even if that entry was unpinned in the official More menu).
    • Escape respects IME composition, clears the search query first, and collapses back to the toggle button on the second press.
  • Auto-collapse on click: Selecting any native launcher in the expanded list folds the drawer cleanly so your session list gets the full column height back.
  • Zero-fork & upgrade-safe: Mounts via the official sidebar.session.action HOC slot and uses scoped CSS rather than replacing @deepseek-ai/dsh-client-ui-sidebar. All official features — More menu, Unpin, Chat Import, native panel icons, 56px collapsed rail, and scroll handoff — keep working unchanged. Disabling or uninstalling this plugin never breaks your sidebar.

Installation

Option 1: DSH Desktop (Plugin Manager)

Open Settings → Plugins (or Plugins in the sidebar), search for dsh-sidebar-menu-fold, and install.

Option 2: CLI (dsh plugin)

dsh plugin --profile <profile> add dsh-sidebar-menu-fold

Option 3: GitHub Release Tarball

dsh plugin --profile <profile> add https://github.com/google-q-dot/dsh-sidebar-menu-fold/releases/download/v1.0.1/dsh-sidebar-menu-fold-1.0.1.tgz

Restart or reload DSH after installation.

Privacy & Permissions

  • Browser-only plugin (dsh.client.platform: "web").
  • No Host backend services, no network requests, no telemetry.
  • Stores only { version: 1, expanded: boolean } locally in window.localStorage (dsh.sidebar-menu-fold.v1); search queries are never persisted.

Development

npm run build
npm run check
npm test

Rollback / Uninstall

Disable or uninstall dsh-sidebar-menu-fold in DSH Settings → Plugins (or run dsh plugin --profile <profile> remove dsh-sidebar-menu-fold). Because the official ui-sidebar is never disabled, the standard expanded launcher list returns immediately.

License

MIT

Related plugins