Bundle
dsh-folded-chat
Two-level fold for DeepSeek Harness chat: collapse think+tools as a process, then fold tool rows separately. Official cards stay intact. 聊天主视图两层折叠:过程一层、工具一层,不替换官方卡片。
- Source
- xingyingyuzhui
- stars
- 1 stars
- License
- MIT
- Updated
- Updated yesterday
Readme
# dsh-folded-chat · 聊天过程两层折叠
DeepSeek Harness Web 插件:在聊天主视图把「思考 + 工具」收成两层折叠,不替换官方对话槽,官方工具卡片和其他 Chat 节点保持原样。
English UI follows the DSH locale.
```
[过程 ▸] 外层
[思考] 官方 Think
[工具调用 ▸] 内层
bash / read / …
[助手正文] 始终可见
```

## 安装
前置:本机已能运行 `dsh web`。
```sh
dsh plugin --profile web add github:xingyingyuzhui/dsh-folded-chat
```
装完重启 `dsh web`。打开 **设置 → 插件 → 插件配置 → 过程折叠**。
## 设置

| 开关 | 作用 |
|---|---|
| 启用 | 总开关。关闭后折叠条消失,官方节点还原 |
| 默认折叠过程 | 已结束轮次是否默认收起外层 |
| 默认折叠工具 | 已结束轮次是否默认收起工具行 |
连续 think + 工具、中间没有可见正文时,收成**一条**过程,不会每一步一条空折叠条。没正文的步骤整行藏进过程;有正文的步骤只藏 Think。
进行中的一组默认展开。手动点过的组不再被自动改写。
## 卸载
```sh
dsh plugin --profile web remove dsh-folded-chat
```
## 开发
```sh
npm test
node scripts/build-client.mjs # 改 fold-*.mjs 后重新生成 client.js
```
不要手改 `client.js`。
## License
MIT
Install
dsh plugin --profile web add github:xingyingyuzhui/dsh-folded-chat
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-folded-chat from the hub
- This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.