fix: dark markdown, steadier folds, readable tool details, live refresh
- gpt_markdown renders through its own Material port, whose Theme.of falls back to a light theme: code panels stayed light and their text black in the dark theme. The chat now wraps markdown in a matching `mui.Theme`. - Folding a run changed the height below its header and threw the header out of view. The toggle remembers the header's screen position, corrects the scroll offset, and parks the header at the top when the run is longer than the viewport. - Step details show what a tool actually did: the command and its output for shell steps, the remaining inputs and the result for the rest, in monospace; toolOutput falls back to metadata. A read/write/edit of an image is no longer foldable — its path opens the preview. - The event stream now times out without a heartbeat, so a half-open connection is noticed and reopened; returning to the foreground restarts the stream, refreshes the session list and the open chat, and reloadTail merges the newest page instead of dropping loaded history. - A page shorter than the limit means there is nothing older, so short sessions no longer offer "load earlier". - Version 0.3.4 (code 304).
This commit is contained in:
1 parent
2baa0a2730
commit
32277564f9
9 files changed
+369
-55
No files matched your search
@@ -27,6 +27,21 @@
|
||||
|
||||
---
|
||||
|
||||
## 0.3.4 主题与工具细节(分支 `flutter`)
|
||||
|
||||
| 项 | 结果 |
|
||||
| --- | --- |
|
||||
| 暗色主题代码块/行内代码 | `gpt_markdown` 用的是它自带的 `material_ui` 移植版 Material,`Theme.of` 找不到宿主主题时回落成**亮色**,于是代码块面板亮、正文黑。现在渲染前用同一套亮/暗 `mui.ThemeData` 包一层,面板、行内代码、表格、语法配色都跟随应用主题 |
|
||||
| 折叠时视口跳动 | 折叠/展开会改变分组高度:现在记录表头在屏幕上的位置,重建后按差值补偿滚动;若因列表边界补不回来,就把表头停到列表顶部。展开时始终看到分组头部,不再落到分组末尾 |
|
||||
| 工具详情 | 不再直接铺请求 JSON:`运行` 显示完整命令(可选中、换行)+ 输出,其它工具显示摘要之外的参数与结果;输出为空时显示「无输出」。`toolOutput` 在 `content` 为空时回退到 `metadata` 的 output/result/stdout |
|
||||
| 图片读取 | `读取`/`写入`/`编辑` 指向图片时,该行不再展开,路径直接可点,打开大图预览 |
|
||||
| 会话不自动刷新 | SSE 增加 30s 心跳超时(服务端每几秒发 `: heartbeat`),断流会被发现并重连;应用回到前台时重开事件流、刷新会话列表并 `reloadTail()`(合并而不是替换已加载的历史页) |
|
||||
| 「载入更早」误显示 | 服务端对已经包含全部内容的页也会给 cursor,现在短于一页即视为没有更早内容 |
|
||||
| openui-lang | 暂未渲染:pub 上的 `openui_lang` 0.18.2 组件签名与 OpenChamber 的 DSL 不一致(`Card` 首参是 children 而非标题,且没有 `Badge`/`KeyValue`/`Stat`/`Details`),接入需要一层组件映射;本轮先跳过 |
|
||||
| 版本 | **0.3.4(code 304)** |
|
||||
|
||||
---
|
||||
|
||||
## 0.3.3 工具调用展示(分支 `flutter`)
|
||||
|
||||
| 项 | 结果 |
|
||||
|
||||
Reference in new issue
Block a user