ayuanxx-max/dsh-session-fork-tree ↗★ 1
dsh-session-fork-tree
DSH 会话分叉树排列功能 · DSH Session Fork Tree Arrangement: forked sessions sit under their parent with rounded rails, a green + expander and ancestor-chain highlight.
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ayuanxx-max/dsh-session-fork-tree說明文件
閱讀完整 README ↗使用
- 打开侧栏:分叉会自动缩进到父会话下面;
- 有分叉的会话,名字右边出现绿色
+(默认收起); - 点
+展开,按钮变为绿色边框;再点收起; - 分叉自己还有分叉时,会再出现一层
+,逐层展开; - 鼠标悬停在子行上,父行与祖先链同时变亮;
- 刷新页面/重启后回到"全部收起"。
可选配置
在 profile 的 cordis.patch.yml 里覆盖该 bundle 的 config(升级不丢):
- id: fork-tree
name: 'dsh-session-fork-tree'
config:
renames: # 同名分叉改名
- sessionId: session-…
title: '父会话 · 分叉1'
reorder: # 把"子会话紧跟父会话"写进 sessionIds
- sessionId: session-…
afterSessionId: session-…
不配置也能用:客户端会在渲染层按父链排序;reorder 只是把顺序持久化,避免下次渲染回退。
Usage
- Open the sidebar — forks indent under their parent automatically;
- A session with forks shows a green
+(collapsed by default); - Click
+to expand (button gains a green border), click again to collapse; - A fork that owns forks gets its own
+, layer by layer; - Hover a child row — its ancestors brighten;
- Reloading returns to "all collapsed".