- Início
- Plugins
- Melhorias de UI
- dsh-workspace-organizer
dsh-workspace-organizer
zihangii/dsh-workspace-organizer
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.
Instalar
dsh plugin --profile web add github:zihangii/dsh-workspace-organizerREADME
活跃工作区自动置顶 · 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
Plugins relacionados
dsh-web (dsh-task-board)
zhu1090093659/dsh-web
dsh-web (dsh-web-all)
zhu1090093659/dsh-web
dsh-TUI
ccch1mneyyy/dsh-tui
dsh-web-ui (dsh-task-board)
zhu1090093659/dsh-web-ui