vlln a64f5cd8e9 feat(git-graph): 图谱视图与统一的底部面板(详情 / 内容 / 差异)
**图谱视图**(`GitGraphLens`):分支下拉框只筛选历史,不做任何写操作;提交行
是一行 28px——泳道连线 + 引用徽章 + 标题。徽章带图标(本地分支 = 分支图标、
远程跟踪分支 = 地球),`HEAD` 不单独成徽章,而是折叠进当前分支的徽章里做前置
✓;徽章的颜色就是它所在车道的颜色,和连线、圆点走同一个五色映射。行上不再
有短 hash 与作者时间:hover 350 ms 弹一张中等密度的卡片(标题、徽章、作者·
相对时间、短 hash + 绝对日期),点击后看到的「详情」才是完整信息(完整 hash、
父提交、Markdown 正文)。列表到底自动加载下一页(IntersectionObserver +
在飞守卫),并保留手动按钮作为兜底。

**底部面板**:三个视角共用同一个可拖拽区域,标签集合**固定**为
`提交详情 / 内容 / 差异`,不随上方视角或选中项变化;没有内容的标签显示空态
(未选择提交 / 读取没有差异 / 此视图暂无内容)而不是消失——此前按选中项推导
标签集合,同一个面板看起来像三个不同的面板。选择、高度、激活标签都持久化。

**内容视图**:操作记录(read 的带行号源码;md/html/pdf 用插件自己的渲染器)
与 git 工作区文件(`fs.read` 读文件本身,二进制/超大走既有下载面板)并列。
读取是懒加载的:只为看 diff 打开文件时不会去读整个文档。md 默认渲染,html
默认源码、点了才渲染 iframe(沿用「选中不自动加载 iframe」的沙箱契约)。

**配色**:五个色槽全部用状态色令牌(business/success/warn/error + 次级灰)。
原来槽位 0 用 `brand-primary`,实测在深色主题下是 rgb(15,17,21),主线几乎
不可见——状态色是给细线和小字设计的,两种主题下都能读。

顺带:Git 视角把当前仓库 / 工作树报给父组件(`onTargetChange`),图谱与预览
才能跟着同一个目标走。

测试:`tests/git-graph-ui.spec.tsx`(19 项:请求时机、错误与重试、分页游标、
竞态与中止、行结构、HEAD 折叠、hover 卡片、自动加载)、`tests/changes-tab.spec.tsx`
(固定三标签在各视角一致、内容视图懒加载、箭头键在标签间移动)、
`tests/markdown-surface.spec.tsx`(内容视图里的 markdown 链接认领)。
2026-10-15 20:44:33 -07:00
2026-08-08 00:04:01 +08:00

dsh-better-sidebar

A dual workbench for DSH: native right sidebar + self-drawn bottom panel, with the ctx.betterSidebar service open to every plugin

npm version npm downloads CI GitHub stars License: MIT Supported DSH versions: 0.2.0-rc.2+
🌏 中文 · English

✨ Features

🗂️ File Management
Lazy-loading tree, git status colors, live directory watch, global search, drag-and-drop upload, multi-select batch actions, dual-source "Open with" menu.
File tree with git colors
Context menu: Open with + Zip and download
🌿 Changes
Git lens + this-session AI-changes lens in one: hierarchical tree, stage / commit / history, unified diff rendering (intra-line highlights + syntax coloring).
Changes: hierarchical tree
📝 Editable Editor & Previews
An editable CodeMirror (the stock preview is read-only), Markdown + Mermaid + floating outline, sandboxed HTML preview, .jsonl record cards, paged preview for huge files, streaming transfers with no size caps.
Markdown + Mermaid preview
🧩 Tasks
Live subagent topology (workflow graph / tree modes) + background task list: exit codes, live output, force-kill.
Tasks: subagent topology
💬 Side Chat (beta)
Codex-style side threads: inherit the full parent context and run independently, realtime push, visible & revocable queue, per-thread model selection, one-click promotion to a top-level session.
Side Chat
🖥️ Bottom Workbench
A self-drawn bottom panel that coexists with the native right sidebar: drag-to-split panes, multiple terminal tabs, per-session persisted layout.
Dual workbench

Also: 📂 the sidebar_open tool lets the model open the sidebar itself · ⚡ ~325KB core at startup, heavy chunks load on demand · 🌏 i18n follows DSH · 📱 narrow screens switch to a full-width drawer

🚀 Installation

dsh plugin --profile web add dsh-better-sidebar@latest

Then hard-refresh the browser (Cmd/Ctrl+Shift+R). Requires DSH 0.2.0-rc.2+.

Pick the plugin version for your DSH version
Your DSH version Install command
0.2.0-rc.2+ (incl. later stable) dsh plugin --profile web add dsh-better-sidebar@latest
0.1.7-rc.1 ~ 0.1.7 stable dsh plugin --profile web add dsh-better-sidebar@0.22.1
0.1.7-alpha.x No compatible release — upgrade DSH to rc.1 first
0.1.6 and earlier (incl. the 0.1.5 line) dsh plugin --profile web add dsh-better-sidebar@0.19.1

Always pin exact versions for older releases (latest moves forward with each new stable). Replace web with your own profile name.

Other ways to install

Let DSH install it for you — paste this prompt into any DSH session:

Install the dsh-better-sidebar plugin (a sidebar workbench for DSH):
1. Run dsh plugin --profile web add dsh-better-sidebar@latest (latest = current stable)
2. Remind me to hard-refresh the browser (Cmd/Ctrl+Shift+R) afterwards
If something fails, check the FAQ table in https://github.com/omdsh-dev/DSH-better-sidebar README first.

One-line script — clone this repo and run bash scripts/install.sh (macOS / Linux / Windows Git Bash; install.ps1 for native Windows). It handles installation + bundle registration.

Updating: just re-run the install command, then hard-refresh the browser.

FAQ
Symptom Cause & fix
Ignored build scripts error pnpm 11 blocked a transitive dependency's build script. Run pnpm approve-builds in the profile directory (~/.dsh/profiles/web) — this plugin itself has no build-script dependencies.
minimum release age / version younger than 24h The release is less than 24 hours old. Wait 24h or re-run (pnpm auto-adds minimumReleaseAgeExclude).
"Profile directory not found" Run dsh web once to initialize ~/.dsh/profiles/web.
Two sidebars on the page Double mounting. Remove the legacy manual mount line (- insert: ... better-sidebar ...) from ~/.dsh/profiles/web/cordis.patch.yml; aggregate packages mounting this package under a different id are auto-yielded, no action needed.
Settings values gone after upgrade Since DSH 0.1.7, preferences live on this plugin's mount row in the profile (default entry id better-sidebar). The plugin migrates your old settings.yaml values once on first start and never overwrites newer values.
Terminal unavailable Terminals are provided by DSH itself (this plugin ships no PTY) — see DSH docs; "host provides no terminal capability" in the bottom terminal means this deployment has no terminal controller mounted.
dsh: command not found Install DSH first; or use npx -y --package @deepseek-ai/dsh dsh plugin --profile web add dsh-better-sidebar@latest.

🆕 Recent Updates

v0.26.1 — full release history at Releases · CHANGELOG

  • ⚡ Fixed the steady-state cost behind "fine on 0.24, then it got slow" (community reports: the sidebar turns laggy after being open a long time, DSH turns laggy after many turns, a restart clears it for a while; an artifact-level A/B puts the line at v0.25.0): both 500 ms timers are now visibility-gated (the host right-panel state is one shared module-level poller; the blank-session fallback only runs while it actually renders), the per-tab 5 s session-root poll became one per session and only while visible, the file-tree watch and side-chat push stop when parked, keepMounted keeps its semantics while every cache/registry is now bounded, and the host cwd resolver gained in-flight dedupe with a 3 s → 15 s TTL
  • 📊 Measured in the real mount lane (4 visited tabs, 15 s idle window): live 500 ms timers 3 → 1, live 5 s timers 5 → 0, session.cwd requests 15 → 0, hit tests 1,620 → 0, forced layouts 5,190 → 30

v0.26.0 — full release history at Releases · CHANGELOG

  • 🚀 Streaming everywhere: uploads / downloads / HTML preview / archiving have no size caps anymore; huge files open as a read-only paged preview
  • 📄 New .jsonl / .ndjson viewer: collapsible record cards, editable and savable
  • 💬 Side Chat goes realtime: pushed message delivery, visible queue with per-message revoke, per-thread model selection
  • 🧩 Tasks panel rebuilt: expand by group, token usage & duration, canvas animations
  • 🖥️ Multiple terminal tabs in the bottom workbench; ⚡ git status polling no longer stalls the UI (30s baseline, auto-backoff)

🔌 Plugin Ecosystem

ctx.betterSidebar offers two extension points to every plugin — registerTab / registerFileViewer; the built-in 6 tabs + 4 viewers use the very same API. The GitHub topic dsh-better-sidebar already lists 30+ ecosystem plugins; the full integration guide is at docs/external-plugin-guide.md.

import type {} from 'dsh-better-sidebar'  // triggers the ctx.betterSidebar type merge
export const inject = ['betterSidebar']
export function apply(ctx: Context) {
  ctx.effect(() => ctx.betterSidebar.registerTab({
    id: 'my-plugin:db', title: 'Database', component: ({ scope }) => <DbView sessionId={scope.sessionId} />,
  }))
}
Ecosystem catalog (28 tab plugins · 4 viewer plugins · 4 enhancements)

📑 Tab plugins (sidebar pages)

Plugin ⭐ Description
ChenRuoT/dsh-sidebar-qa stars Select-to-ask side page: Codex-style side questions / Claude Code /btw
fuhefei/dsh-sentinel stars Condition-driven wake-up system: file / command / HTTP / process / webhook watchers that wake an agent; dock + sidebar branch + global dashboard
Fisfzy/ego-browser stars Agent browser: i18n-aware local browser tab (auto-registers a sidebar page when better-sidebar is present, falls back to a floating observer)
jiuge2467/dsh-studio stars Full-stack workbench: multi-source MCP visual debugging hub, visual thinking engine
Iwctwbh/dsh-flowglass stars Flowglass: realtime session flow visualization (messages / tool groups / subagent branches)
FeatherHunter/dsh-mattpocock-skills-deck stars Gamified mattpocock/skills task system: fog-of-war map, task bar progression
GULI-lab/DSH-element-source stars Click any UI element to jump to its Vue / React / Svelte / Angular source and feed it into the session
Lzh3070/dsh-file-review-tab stars File review page: line-level red/green diff + undo + deep links into chat lines
yq04/dsh-git-remotes stars Git remotes page: branches / upstreams / ahead-behind, fetch with prune, ff-only pull, confirmed push
ztyhehe/dsh-better-sidebar-svn stars SVN source-control page: status / diff / log / commit / update / revert / conflict resolution, symmetric to the built-in Git panel
Melody-max114/dsh-excel-panel stars Excel editing page: xlsx preview / edit, live formula evaluation, merged cells, save back to the original file
v587d/dsh-anysearch-refs stars AnySearch result reference cards: query, source digest, keyword highlights
Lukeknow0/dsh-markdown-link-preview stars Markdown artifact link preview: click same-origin .md outputs in chat to read them in the sidebar
mlosun/dsh-docs-panel stars Global docs panel: portable Markdown notes readable from any workspace
tylina/dsh-tylina stars Typst document tool: WYSIWYG typesetting for papers, reports, exams, resumes, charts, posters, sheet music, and PPTX-exported slides
lnyuqian/dsh-skill-sidebar stars Skills panel: scans local skill directories, short action phrases + one-click copy + pinning
g-yixuan/dsh-sidenote stars Codex-style side chat + selection-anchored annotations (lightweight consumer plugin)
OMSociety/dsh-ssh-tunnel stars Multi-host SSH tunnels + SSH manager page
OMSociety/dsh-git-forge stars GitHub / Gitea accounts, project authorization and push policies
YesSanSan/dsh-conversation-outline stars Conversation outline page: turn-structured view, one-click jump, LLM one-line titles
Wulabalabo/dsh-sidebar-Explorer-Plus stars File manager page: upload / move / delete / rename / new folder (write operations)
yq04/dsh-turn-review stars Turn review: review agent changes turn by turn
Ghz114514/dsh-refpics stars Pinterest-style reference-image search: masonry flow, sidebar board, download & Eagle favorites
yzlin499/dsh-yzlin499-easy-plugins stars Handy utility bundle (friendly to bare-bones DSH)
dong-victor/dsh-better-sidebar-starter stars Run-configuration page: IDEA-style Run/Debug configs — one-click start, history, WebSocket live logs, parallel instances
baosfeng/my-dsh-plugins stars Personal plugin collection (dsh-file-activity): sidebar file-activity page — read / create / modify history and stats
Hoemr/dsh-better-overleaf stars Overleaf tab: CDP browser login, project switching, local git mirror with two-way sync
Andor-Z/dsh-turn-outline stars Turn-trace page: folds the session by user turns, click any step to jump back to its chat position; zero LLM, read-only

🖼️ Viewer plugins (file viewers)

Plugin ⭐ Description
HuanLinOTO/dsh-plugin-better-sidebar-plugin-office stars Office trio preview (.docx / .xlsx / .pptx), shipped as a separate slim bundle
HuanLinOTO/dsh-plugin-better-sidebar-plugin-audio stars Audio preview: zoomable waveform player + realtime spectrum, HTTP Range streaming route, scrubbable at any size
zemul/dsh-video-preview stars Inline video preview: .mp4 / .webm / .mov / .mkv / .avi with HTTP Range seeking
dong-victor/dsh-better-sidebar-jupyter stars Runnable .ipynb notebook view: lazy Python kernel, streaming output, save-back

🧰 Enhancements & tools

Plugin ⭐ Description
eg-bole/dsh-better-sidebar-icons stars VSCode-style file / folder icon theme (vscode-icons port, pure DOM overlay, zero intrusion)
dong-victor/dsh-better-sidebar-terminal-plus stars Terminal enhancements: bundled Nerd Font icons, fixed xterm icon rendering, stable terminal cwd
Max-Null/dsh-sidebar-preview-select stars Preview selection boost: select text in the sidebar preview → floating "send to session"
Hoemr/dsh-quicklook stars QuickLook-style Space preview: press Space on the active file tab for full-size image / PDF / text

📣 List your plugin: tag your repo with the dsh-better-sidebar topic to appear on the topic page; then PR a PluginEntry into src/client/plugins-tabs.ts / plugins-viewers.ts to join the in-app recommended catalog.

⌨️ Keyboard Shortcuts
Action Keys
Save editor Ctrl/Cmd + S
Find / replace in file Ctrl/Cmd + F
Find next / previous Ctrl/Cmd + G / Shift + Ctrl/Cmd + G
Select next occurrence Ctrl/Cmd + D
Git commit Ctrl + Enter
Close tab Middle-click
Split / merge panes Drag a tab to a pane edge / center
Reference a file in the input box Hover a row → @file button
🔐 Security & ⚠️ Known Limitations
  • Routes sit behind a Host-header trust fence (same as /api); fs.write is atomic; git is only invoked via CLI and never sets identity
  • ⚠️ Since v0.23.0 the fs routes do no workspace-containment check: they can read/write any path the host user can reach (OS permissions only) — callers must not treat these routes as fenced
  • HTML previews render in an opaque-origin sandboxed iframe; the sandbox can be disabled per feature in settings (off by default, with warnings)
  • No git push/pull/fetch; the file tree only watches expanded directories; Markdown preview renders the saved file
  • Read-only formats (spreadsheets / PDF / images / Office) are rendered by DSH's own document preview and follow the host version; the browser view only exists in the desktop profile
  • Unsaved drafts are confirmed before closing a tab / deleting a file / refreshing; saving after external modification is rejected, never silently overwritten
  • On mobile (<768px) there is no bottom panel — its tabs merge into the right sidebar's full-width drawer
🛠️ Development & Build
pnpm install      # @deepseek-ai/* devDependencies are published, resolves directly
pnpm typecheck && pnpm lint && pnpm build && pnpm test
make check        # aggregate gate (matches CI)
make mount        # real-mount smoke: build + pack → pnpm test:mount

Architecture: a single npm package with host/client halves — host (src/index.ts): /sidebar/api/* JSON API, media / HTML preview / upload routes and two WebSockets; client (src/client/index.tsx): native right-sidebar tabs + bottom workbench; state persisted per session in localStorage. Repository rules: AGENTS.md.

Windows / Linux / macOS supported (macOS verified daily, the rest covered by unit tests and Windows CI); no native dependencies — building needs only Node ≥ 20 + pnpm ≥ 10.

💬 Community

QQ group: 577011007

WeChat group QR QQ group QR

🤝 Contributing

  • Code changes go through PRs: develop on a feat/* / fix/* branch → gh pr create; run pnpm typecheck && pnpm build && pnpm test (or make check) before submitting
  • List an ecosystem plugin: tag your repo with dsh-better-sidebar + PR an entry into src/client/plugins-tabs.ts / plugins-viewers.ts
  • Repository rules: AGENTS.md

👥 Contributors

Contributors

🔗 Friends

  • dsh-tianshu-tui: interactive terminal UI plugin for DeepSeek Harness with TDD and evidence-gate workflows
  • dsh-TUI: Claude Code-style fullscreen terminal plugin — pixel-whale header, streaming thoughts, context progress bar + TPS gauge
  • dshfind plugin store: third-party plugin market — public repos under the dsh-plugin topic, synced daily
  • DeepSeek Harness Desktop Tauri: Tauri desktop build — 5MB installer, zero setup, plugins preinstalled
  • DeepSeek Harness Desktop: a modern desktop app — start and manage local Harness services without configuring Node.js; website

MIT License · Built for the DeepSeek Harness ecosystem · discover more plugins under topic dsh-better-sidebar
S
Description
WorkBuddy/Tutti-style right sidebar enhancement for DeepSeek Harness: Tasks / Agents / Profile tabs, configurable display name (default apes--sidebar, preset feyOS). Built on dsh-better-sidebar.
Readme MIT
33 MiB
0 Stars 1 Watchers 1 Forks
Languages
TypeScript 95.7%
CSS 3%
JavaScript 0.7%
Shell 0.5%
PowerShell 0.1%