feat: animated folds that hold their header, folded-by-default runs
- Rebuilt the fold after dsh-Go's ExpandReveal/_holdHeader: the body grows from its top edge and fades in over 280ms (easeInOutCubic), and every frame reports the height it adds or removes *before layout*, so the list can scroll by exactly that much and keep the header under the finger. Folds nobody can see take their new size without animating or dragging the view. - Finished runs now fold to their summary line, as in dsh-Go; running ones stay open. A tap overrides either default and is remembered. - Streamed tool parts only carry an id and input, never the tool name, so live steps showed a generic "工具" label. Each step now swaps in the server's copy of its message when it ends, which brings the name, the full input and the attachments (and with them the right icon, label and image handling). - getMessage read the message from the response envelope directly and would have thrown; it now unpacks `data`. Version 0.3.5 (code 305).
This commit is contained in:
1 parent
32277564f9
commit
d7cec9d155
7 files changed
+228
-76
No files matched your search
@@ -27,6 +27,20 @@
|
||||
|
||||
---
|
||||
|
||||
## 0.3.5 折叠动画与流式修复(分支 `flutter`)
|
||||
|
||||
| 项 | 结果 |
|
||||
| --- | --- |
|
||||
| 折叠定位 | 照 dsh-Go 的 `ExpandReveal`/`_holdHeader` 重做:内容用 `SizeTransition` 从顶部往下长、同时淡入,280ms `easeInOutCubic`;每一帧在**布局之前**把长出来的高度补进滚动位置,表头因此停在手指按下的位置。列表两端补不动时停在边界;看不见的折叠(历史里自动收起的一轮)直接换尺寸,不做动画、不拽视图 |
|
||||
| 默认折叠 | 与 dsh-Go 一致:**已结束的一轮收成一行摘要**(`已完成 · N 次工具调用`),运行中的保持展开;点一下记住你的选择(手动展开的在结束后也不会自动收起) |
|
||||
| 工具详情 | 不再铺请求 JSON:`运行` 是完整命令 + 其余参数 + 输出(空则「无输出」),其它工具是摘要之外的参数 + 结果;`toolOutput` 在 `content` 为空时回退 `metadata` 的 output/result/stdout |
|
||||
| 图片读取 | `读取`/`写入`/`编辑` 指向图片时该行不可折叠,路径直接点开大图;读取失败的行仍是普通可折叠步骤 |
|
||||
| 流式工具名 | 事件里只有工具 id 和 input,没有名字,直播中的步骤只能显示「工具」。现在每一步结束(`session.step.ended`)后用 `getMessage` 换回服务端那条消息:名字、完整输入、附件都齐了,标签立刻变成 `运行`/`读取` 等 |
|
||||
| 会话自动刷新 | SSE 30s 无数据(服务端有 `: heartbeat`)即判定断线并重连;回到前台重开事件流、刷新会话列表并合并 `reloadTail()` |
|
||||
| 版本 | **0.3.5(code 305)** |
|
||||
|
||||
---
|
||||
|
||||
## 0.3.4 主题与工具细节(分支 `flutter`)
|
||||
|
||||
| 项 | 结果 |
|
||||
|
||||
Reference in new issue
Block a user