D
@suqingsq/dsh-thinking-collapse
v0.2.0 · 0 天前发布
Codex-style live reasoning and tool-call collapse for the DSH Web chat view.
README
dsh-thinking-collapse
English | 中文
为 DeepSeek Harness Web 聊天视图提供 Codex 式活动折叠。
已按 @deepseek-ai/dsh@0.1.0-rc.6 验证。
做什么
插件替换聊天视图的 assistant-step 与 tool-call 渲染器,让每一轮只有一条外层活动行。
本轮仍在进行时——思考正在流式输出,或本轮普通工具仍在执行,且还没有可见正文——外层保持展开。内层思考保持 DSH 默认的 Think 行:Think 图标、标题 Think、折叠时显示首行、流式时显示最新一行。官方工具树按时间顺序出现在外层里。标题以紧凑时长持续更新,例如「已处理 2s」。
本轮结束后——正文出现,或本轮工具都已结束——外层自动收成「耗时 2秒」这类标题。折叠态 header 不预览思考或命令。点开外层后,每一段 Think 仍然默认折叠,需要再点一次才看到该段内容。
行为
ask_user_question 与审批提问仍留在编辑器或原聊版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- @suqingsq/dsh-thinking-collapse
- Repo
- git+https://github.com/SisyphusSQ/dsh-plugins.git
- Engines
{"node":">=22"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-attachment","@deepseek-ai/dsh-client-ui-conversation","@deepseek-ai/dsh-client-ui-primitives","@deepseek-ai/dsh-client-ui-slots","@deepseek-ai/dsh-client-ui-tool"],"platform":"web"}}