omdsh-dev / DSH-better-sidebar
git clone https://github.com/omdsh-dev/DSH-better-sidebar.git
v0.28.0 · 5d ago
开放的侧边栏底座,支持三方拓展注册新侧边栏页面。内置文件渲染编辑/终端/侧边对话/Git/子代理页面 | Open sidebar foundation, supports third-party extensions to register new sidebar pages. Built-in file rendering/editing, terminal, side chat, Git, and sub-agent pages.
+18
stars, 24h · #799
+~126
stars, 7 days · #973
+~540
stars, 30 days · #962
4.4k
★ total · +3% this week
422
forks · 228 open issues
Star history (as recorded here)
LanguageTypeScript
LicenseMIT
Created2026-08-07 (2mo ago)
Last push5d ago
Watchers9
OwnerOrganization
GitHub topics
Links
README excerpt
# dsh-better-sidebar A dual workbench for DSH: native right sidebar + self-drawn bottom panel, with the ctx.betterSidebar service open to every plugin 🌏 中文 · 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. | **🌿 Git** Source Control (Merge / Staged / Changes groups, message box with Generate, branch + sync footer) plus a this-session AI-changes lens, with a **read-only commit graph** (lanes, ref badges, branch filter, commit details) in one tab. | | **📝 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. | **🧩 Tasks** Live subagent topology (workflow graph / tree modes) + background task list: exit codes, live output, force-kill. | | **💬 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. | **🖥️ 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. | **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 ### 🌿 Git Graph (read-only commit graph) Switch to **Git Graph** at the top of the Git panel for commit nodes, forks and merge edges across local branches, remote-tracking branches and HEAD. The branch selector only filters history — it **never checks out or fetches**; each commit is one line (lane edges + ref pills + subject), hover shows the author and short hash, and selecting one opens its full message and diff in the bottom pane. History loads in pages; reference changes during pagination prompt a refresh; reads are bounded (200 commits per page, offset 10,000, 1,000 branches) and report an explicit error past a limit. This first version shows no tags and offers no history-changing actions. ### 🧭 dsh-context diagnostics (optional) With the `dsh-context` plugin installed, three places offer a one-click jump into that conversation's **Context** view: an agent node's detail card on the Tasks page, a background job's output window (the job's real owner session — never merely the session its row was watched under), and the session header. The entries **appear only** while dsh-context's `Context` page is actually registered: a deployment without it (or with that page hidden) shows no control at all, and while one jump is in flight every entry point is disabled. A failed jump is reported once, in a dismissible alert at the frame's bottom edge; nothing is polled while idle. ## 🚀 Ins