Floats the workspace that just got a new exchange to the top of the sidebar, moving it within the host's durable workspace order. Blank sessions and subagent sessions never trigger a float; no switches and no UI.
Install
# from a prebuilt release tarball
dsh plugin --profile web add -w "https://github.com/zihangii/dsh-workspace-organizer/releases/download/v1.0.0/dsh-workspace-organizer-1.0.0.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:zihangii/dsh-workspace-organizer
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
This plugin publishes its README in Chinese only.
活跃工作区自动置顶 · Workspace Organizer
中文 · English
dsh 的侧边栏工作区顺序是持久的:你上次把哪个工作区拖到最上面,它就一直待在最上面, 哪怕你这几天一直在另一个工作区里干活。
这个插件把顺序改成「跟着对话走」:你在哪个工作区里发起新的问答,那个工作区就自动浮到侧边栏最上方。 没有开关、没有界面、没有配置——装上即生效,卸载即恢复 dsh 原本的持久顺序。
它怎么工作
- 监听会话活动(
sessions列表),识别「某个工作区刚收到了新对话」——判断依据是会话的updatedAt(你最近一次提问或插话的时间)。 - 空白会话(新建还没说话的会话行)和子代理会话不会触发置顶,避免打开应用就被洗牌。
- 600ms 防抖合并同一批活动,然后调用宿主的
workspaces.insertBefore把该工作区排到最前。 - 不存储任何东西:顺序本体还是 dsh 宿主那份持久排序,本插件只是替你「拖了一下」。
- 首次加载只记录基线(水位线),打开应用这个动作本身不会重排侧边栏。
兼容性
- 需要 DSH ≥ 0.2.1-rc.1(依赖
workspaces.insertBefore与会话updatedAt)。 - 纯客户端插件:只改工作区显示顺序,不注册任何界面、不拦截任何请求。
安装
dsh plugin --profile desktop add dsh-workspace-organizer
(未发布 npm 时,使用 GitHub Release 里的预构建 tarball:
dsh plugin --profile desktop add https://github.com/zihangii/dsh-workspace-organizer/releases/latest/download/dsh-workspace-organizer.tgz
)
装完重启 DSH 生效。
Workspace Organizer
English · 中文
dsh keeps a persistent workspace order in the sidebar: whatever you dragged to the top stays there, even if you have been working in a different workspace all week.
This plugin makes the order follow the conversation: whichever Workspace you just talked in floats itself to the top of the sidebar. No switches, no UI, no configuration — it just runs, and uninstalling restores dsh's original persistent order.
How it works
- Watches Session activity (
sessionslist) and detects "this Workspace just got a new exchange", based on each Session'supdatedAt(your latest prompt or steer). - Blank Sessions (a fresh New Session row) and subagent Sessions do not trigger a float, so opening the app never reshuffles the sidebar.
- Bursts of activity are merged with a 600 ms debounce, then the Host's
workspaces.insertBeforemoves that Workspace to the front. - Stores nothing: the order itself stays in the Host's durable workspace ordering — the plugin merely does the drag for you.
- The first load only records a baseline watermark; opening the app never reorders anything.
Compatibility
- Requires DSH ≥ 0.2.1-rc.1 (needs
workspaces.insertBeforeand SessionupdatedAt). - Client-only plugin: changes the displayed workspace order only. No UI, no intercepted requests.
Install
dsh plugin --profile desktop add dsh-workspace-organizer
(If not yet published to npm, use the prebuilt tarball from GitHub Releases:
dsh plugin --profile desktop add https://github.com/zihangii/dsh-workspace-organizer/releases/latest/download/dsh-workspace-organizer.tgz
)
Restart dsh after installing.
License
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10645
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★ 10645
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.
ccch1mneyyy/dsh-TUI★ 8283
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7472
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.
omdsh-dev/DSH-better-sidebar★ 5336
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1060
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.