feat: tool steps as foldable runs with icon, label and summary
The old rows ("已思考 ▸", "✓ shell ▸") said nothing about what a step did
and could only be expanded one at a time.
- A turn is one or more assistant messages (the server writes a message
per step), so grouping per message produced a header for every step.
Rows are now grouped per turn: one "已完成 · N 次工具调用" header, split
where the reply has text. Header shows running/complete/failed, and the
whole run folds away.
- Every step shows a rounded icon for its kind (thought, shell, read,
write, edit, patch, search, fetch, task, skill), its label and a
one-line summary: the command, the file path, the pattern, the URL, the
skill id, and so on.
- A step opens to its reasoning text or the tool's input and output;
image references stay listed and clickable.
- A lone thought needs no header; a reasoning-only run reads "思考过程".
- Version 0.3.3 (code 303).
This commit is contained in:
1 parent
61977d2b14
commit
2baa0a2730
4 files changed
+424
-106
No files matched your search
@@ -27,6 +27,20 @@
|
||||
|
||||
---
|
||||
|
||||
## 0.3.3 工具调用展示(分支 `flutter`)
|
||||
|
||||
| 项 | 结果 |
|
||||
| --- | --- |
|
||||
| 为什么要改 | 旧版每个 reasoning/tool part 只显示一行「已思考 ▸ / ✓ shell ▸」,既没有概要也不能整组收起,长回合里几乎不可读 |
|
||||
| 分组依据 | 服务端每个 step 各写一条 assistant 消息,所以按**消息**分组会得到「5 组」;现在按**回合**(连续的 assistant 消息)分组,`text` 分隔出新的组。与 dsh-Go 一致:一组一个「已完成 · N 次工具调用」表头 |
|
||||
| 表头 | 左侧状态图标(进行中转圈 / 完成对勾 / 失败警告),「已完成 · N 次工具调用」/「执行中 · …」/「有步骤失败 · …」;只有一个思考步骤时不显示表头,直接显示「思考」行;纯思考的组显示「思考过程」 |
|
||||
| 每行 | 26px 圆角图标 + 名称 + 「· 概要」+ 展开箭头;图标按工具类型(思考=psychology、运行=terminal、读取=description、写入/编辑/补丁、搜索、抓取、任务、技能…),未知工具用工具名 |
|
||||
| 概要 | bash=命令、read/write/edit=文件路径、grep/glob=模式、webfetch=URL、task=描述、skill=id,其余取 description/path/command/query/url/pattern/name/id,再退化为紧凑 JSON |
|
||||
| 展开 | 单行展开后显示推理全文或工具的 input/输出(等宽、可选中);图片引用仍以 🖼 行列出,点击预览 |
|
||||
| 版本 | **0.3.3(code 303)** |
|
||||
|
||||
---
|
||||
|
||||
## 0.3.2 修复(分支 `flutter`)
|
||||
|
||||
| 项 | 结果 |
|
||||
|
||||
Reference in new issue
Block a user