DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-rail-order

y

dsh-rail-order

Manifest valid

Drag-to-order for the DeepSeek Harness left rail: panel icons, pinned sessions, workspaces, sessions and view tabs. Frozen fork of dsh-sidebar-entries.

UI (client)hasBundlePatch

dsh-rail-order

左栏排序,就做这一件事。

一个面向 DeepSeek Harness 的侧栏增强插件:让左栏的面板图标、置顶会话、工作区、会话、对话页签都按照你拖出来的顺序待着。

它是 dsh-sidebar-entries 的冻结分叉:上游不再跟随,这里只保留实际在用的六个功能,并修掉两个会在真机上咬人的问题。


保留的六个功能

#功能你在界面上看到什么
1面板图标行拖动排序左栏里「插件 / 工具管理 / 任务看板 / …」这些行,按住行尾的 ⠿ 手柄上下拖动即可换位,鼠标和触屏都支持
2置顶会话分组工作区上方多出一个「置顶」分组,钉住的会话在最上面,仍显示运行中/等待中的实时状态,可拖动改顺序
3工作区/会话行拖动把工作区连同它下面的会话整组拖动,或单独拖动一条会话;落点按宿主原生 dragover 的对齐方式处理,不会抖
4对话页签拖动对话区上方那排 对话 / 轨迹 / … 可以左右换位,顺序写进 localStorage
5底栏按钮提升把侧栏底部原本的按钮(设置、插件市场等任意插件注册的)提到左栏变成普通行,原按钮隐藏
6归档会话下沉已归档的会话收拢到每个分组最底部,不再和进行中的工作混在一起

砍掉的两个功能(以及为什么)

面板管理器 —— 上游自带一张「插件面板」卡片,外加折叠开关与整列高度上限(面板区限高 30%)。DeepSeek Harness 0.2.2-rc.2 起左栏可以原生滚动,限高只会把小列表切出滚动条;逐项开关则由宿主自己的顶栏管理接管。这部分连同 --dse-plugin-cap / --dse-pin-cap 两个 CSS 变量一起移除。

残留卡片清扫 —— 上游有一个每 500ms 扫一遍 <body>、把「看起来像拖拽残留」的节点删掉的定时器。它的判据是「body 直接子节点且内部含一行会话」,而宿主把设置弹层也直接挂在 body 下、里面全是会话树行 —— 结果是编辑模型供应商时设置弹层被静默删除:面板消失、React 不知情、控制台零报错,再点设置只会把已不存在的弹层状态翻成关闭。

现在只删自己创建的那张预览卡片(dropCarriedCard()),不再对文档做任何全量清扫。

与上游的另外两处差异

  • 触屏拖拽:整行加 touch-action 会连面板区一起禁掉滚动,所以只给行尾 26px 的手柄(@media (pointer:coarse) 下才出现)设 touch-action:none;长按 120ms 进入拖拽,竖向位移超过 6px 才算取消,拖拽期间拦截非被动 touchmove 阻止页面跟着滚。上游 PR:FragrantLotus/dsh-sidebar-entries#2。
  • 宿主行包裹层:0.2.2-rc.2 把面板行改成 nav > div.panelEntry > (button.panelRow + button.panelUnpin),宿主自己的 rows(nav) 只认 nav > button 因而返回空数组,落点算不出来、松手回弹。这里用 rowUnit() / rowButton() 同时认包裹层和内层按钮;触屏上隐藏宿主的「取消固定」图钉,避免和拖拽手柄抢同一块 28px。
  • 侧栏滚动手势:上游给面板列表自己开了滚动容器(nav[class*=panelList]{overflow-y:auto;overscroll-behavior:contain}),那是「面板区限高 30%」时代的遗留。限高一去掉,这个容器就变成「能滚但没内容、又不许把手指交给父级」的死区:手指落在插件列表上滑动,整条侧栏一动不动,只有滑到列表外才有反应。实测 scrollHeight 316 = clientHeight 316、scrollable:false、overscrollY:contain,而真正的滚动容器是宿主的 .…scrollArea。现在滚动完全交还宿主,本插件只管顺序。

安装

dsh plugin --profile web add @ymf2317/dsh-rail-order

本地开发可以指向目录,pnpm 会以硬链接接入:

// <profile>/package.json
"dependencies": {
  "@ymf2317/dsh-rail-order": "file:vendor/dsh-rail-order"
}

装完需要重启 DSH Web 宿主,再刷新页面。

诊断端点

宿主半区注册了五条只读/轻量路由(/rail-order/* 与旧的 /sidebar-entries/* 前缀同时可用):

方法路径用途
GET/rail-order/ping{ ok, plugin, version }
GET/rail-order/graph客户端模块图里本插件那一条
GET/rail-order/log最近 20 条客户端上报
POST/rail-order/log客户端写入一条上报
POST/rail-order/reloadclientModules.rebuilt('dsh-rail-order'),改完 lib/client.js 不必重启宿主

localStorage 里的键沿用上游命名(dse.sidebar.order.v2、dse.pin.order.v1、dsh.sidebar-entries.viewtab.v1),这样从上游换过来时已有的顺序不会丢。

许可

MIT。原始实现 © FragrantLotus,分叉与删减 © ymf2317-tech。

powered by dsh

Comments

Loading…

Similar plugins

dsh-entry-organizer

by xishuai-zero

Drag-reorders the dsh sidebar panel entries and the conversation view tabs, and moves an entry between the sidebar and the tab strip as a real tab; order and moves are saved locally and survive restar

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

Oct 30, 2026

dsh plugin --profile web add dsh-entry-organizer

by TLEWA

DeepSeek Harness (DSH) sidebar plugin: long-press drag to reorder the global panel strip, tuck panels into the More menu and drag them back.

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 3

MIT

JavaScript

Nov 17, 2026

dsh plugin --profile web add dsh-sidebar-organizer

by Asterlyra

Hides unused panels in the left rail grouped by origin, and turns the rail More button into an expand/collapse toggle that lays out every panel.

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

Nov 3, 2026

dsh plugin --profile web add dsh-panel-organizer

侧栏面板自由拖动:长按拖到任意位置排序,拖进「更多」即收纳、拖出即放回 | Sidebar panel organizer for DeepSeek Harness

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

dsh plugin --profile web add dsh-panel-tidy

by watershow666

Turns the DeepSeek Harness sidebar panel entries and footer entries into one row of icon-only squares with hover names, adds four icon-size presets, per-entry show/hide switches and up/down ordering,

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

Oct 24, 2026

dsh plugin --profile web add dsh-sidebar-icon-row

by OuQiL

A dedicated Pinned area for DeepSeek Harness: a pinned group atop the sidebar session list plus a full Pinned page, opening every conversation in its original workspace.

Development & InfrastructureManifest valid

★ 15

MIT

JavaScript

Nov 16, 2026

dsh plugin --profile web add dsh-pinned-panel