@kaidiren/dsh-reasoning
DSH web GUI plugin: auto-expand assistant reasoning (Think rows).
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kaidiren/dsh-reasoning说明文档
阅读完整 README ↗@kaidiren/dsh-reasoning
English | 中文
DSH Web GUI 插件:自动展开助手深度思考(Think 行)。
功能
- 展开思考:设置开启时,每条 Think 行(可折叠的深度思考块)默认展开——流式思考与 新加载的历史消息都包含在内。关闭后保持折叠,可手动点击展开单条。
- 设置卡片:「设置 > 插件配置」中的一张卡片(与「Web UI 插件」组卡平级), 开关即时生效,选择持久化在浏览器(localStorage)。
插件刻意采用 DOM 方案:折叠状态存在 React 组件 state 里(折叠时正文根本不在 DOM 中),
所以可靠的挂钩方式是模拟点击官方会话 UI 输出的稳定 data-* 属性
(data-variant="think"、data-disclosure-row、data-expandable、data-open)。
安装
从 npm 安装(推荐)
dsh plugin --profile web add @kaidiren/dsh-reasoning
从仓库安装(开发调试)
git clone https://github.com/kaidiren/dsh-reasoning.git
cd dsh-reasoning
pnpm install
pnpm build
dsh plugin --profile web add link:$(pwd)
安装后重启 dsh web 生效。
已知限制
- 依赖官方会话 UI 的
data-*属性契约;未来 DSH 若改名需要同步更新选择器。
许可证
BSD-3-Clause。