Adds Pin/Unpin to the sidebar session-row menu and a collapsible Pinned Sessions group above the session list, with host-side persistence, hover quick-unpin, collapse memory, and live running-state dots.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:NattoCB/dsh-plugin-pin-session
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
A DeepSeek Harness web plugin that pins sessions: a collapsible Pinned Sessions group above the sidebar session list, plus Pin / Unpin entries in every session row's
...menu. Pure client+host bundle — zero changes to DSH core, pin order stored host-side so it follows you across browsers and origins.
✨ Features
- 📌 Pin / Unpin in the row
...menu — one entry per row, label reflects current state. - 🗂️ Collapsible Pinned Sessions group directly above the session list:
- click a pinned row to open that session (
sessions.open); - hover reveals an
×quick-unpin; - header toggles collapse (persisted per browser via
localStorage); - sessions no longer present in the list render dimmed and are not clickable.
- click a pinned row to open that session (
- 💾 Host-side storage at
$DSH_HOME/storages/pin-session.json— pin order is oldest-first and consistent across browsers and origins. - 🧩 Zero core surgery — pinned sessions stay in the chronological list; the shipped WorkspaceBrowser is left untouched.
🚀 Install
dsh plugin --profile web add github:NattoCB/dsh-plugin-pin-session
Then add "dsh-plugin-pin-session" to dsh.profile.bundles in the profile's
package.json. A DSH restart is required — new client bundles join the boot
graph only at process start.
Local checkout instead?
dsh plugin --profile web add file:/absolute/path/to/dsh-plugin-pin-session
⚙️ How it works
| Half | Mechanism |
|---|---|
| Host | webServer.register({ kind: 'prefix', path: '/pin-session' }) JSON API over an atomic JSON file store |
| Row menu | The shipped session-row menu portals a role="menu" element to document.body; a MutationObserver matches each menu to its row via React fibers (props.node.id) and appends one Pin/Unpin item styled with the menu's own classes, closed by an outside pointerdown |
| Section | A React root planted before the [role="tree"] session list renders each pinned row's own real primitives.Menu, anchored at that row's ... button and wired to the same live callbacks (onRename(id, title) / onFork(id) / onArchive(id)) resolved from the row's fiber |
The shell freezes every vendor module it serves (Object.isFrozen(primitives) === true),
so shared components cannot be monkey-patched — but they can be called. The
section menu therefore opens at the pinned row (not wherever the original row
is scrolled) while rename/fork/archive stay single-sourced in the shipped
browser; the ... affordance hides while the real row is not rendered
(collapsed group / filtered list).
No pin icon ships in the primitives set, so the menu item embeds its own pushpin SVG.
✅ Verify after refresh
- Sidebar shows Pinned Sessions above the list once at least one session is pinned.
- Hover a session row →
...→ Rename / Fork / Archive + a pushpin-iconed Pin. - Click Pin → row appears under Pinned Sessions; menu flips to Unpin.
- The pinned row's own
...opens right at that row with the same actions. - Click a pinned row → that session opens; Unpin removes it.
- Collapse the group → reload page → collapsed state survives (
localStorage). cat ~/.dsh/storages/pin-session.jsonshows the id list.
🔌 API
GET /pin-session/pins -> { pins: [{ id, title?, pinnedAt }] }
POST /pin-session/pin {id, title?} -> { pins }
POST /pin-session/unpin {id} -> { pins }
🧪 Test
npm test # node --test — 11 cases across store + HTTP router
License
MIT — see LICENSE.
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 8759
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 8759
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 4819
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
ccch1mneyyy/dsh-TUI★ 4602
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
omdsh-dev/DSH-better-sidebar★ 4181
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
Devin-AXIS/deepseek-design#deepseek-idesign★ 1461
Visual design studio for websites, app prototypes, posters, cards, reports, and magazines, with templates, direct element editing, selection-aware AI draft handoff, and export.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.