Repository navigation
Feature request: a plugin-facing right column for the conversation (conversation.right) #13552
Replies: 1 comment
|
Correction from the author — the premise of this request is wrong. I dug into the published docs after filing it and I should set the record straight rather than leave a misleading request open.
So the right column, panes, splits and floating already exist — and they are documented. What plugins were missing was not a slot but the knowledge that this surface is the intended place for panel UI. My original claim ("no plugin-facing right column; everyone has to hand-measure DOM and stack manually") does not hold. What I am doing instead of this request:
The one thing that still seems genuinely absent is a plugin-facing way to open a real OS-level window (as opposed to the in-app floating pane). If that is out of scope by design, say so and I will not ask again; if it is planned, a pointer would help. Sorry for the noise. |
Uh oh!
There was an error while loading. Please reload this page.
背景
DSH 0.2.2-rc.3 声明了 89 个 slot,但没有一个是可供插件使用的“对话右侧列”:
rightbar是 single 占位,被内置右侧栏占用;插件注册会replaceRisk: shadows-shipped-ui,等于盖掉原生右栏。conversation.view是 chat / trajectory 的标签页列表,不是列。shell.overlay是 frame 级浮动层,本身不跟随任何列。结果是:想让插件在对话区右侧固定一块面板(额度卡、review 卡、advisor 卡),只能各自在
shell.overlay里注册席位,再用position: fixed+ 手工测量 DOM 来定位。现在的做法(每个插件都要重复一遍)
这几个选择器都是内部实现细节(class 名、
data-side属性、aria-label 文案),没有任何兼容性承诺。已知三个插件各自复制了同一套测量逻辑,代价是:top锚点,同时放在右侧时会精确叠在一起;目前只能靠插件互相读对方的[data-*-dock]手动错开。建议
新增 list 类型 slot,例如
conversation.right(scope: session 或 root),由 frame 负责:order决定;有了这个 slot,现有插件的测量代码可以整体删掉。
退一步也可以
如果不打算加 slot,希望能把
.widthHandle[data-side]与[data-conversation-tabs]固化为文档化的稳定契约,这样至少不会因为内部改动而失效。参考实现
All reactions