Repository navigation
v0.3.0
中文
本次加入渐进式流式渲染。模型仍在生成工具参数时,卡片就可以逐步显示。
preparing阶段从已闭合的参数片段折叠出预览,与最终快照采用相同的消息批次。尚未到达的引用组件用骨架显示,等root出现才开始绘制。- 预览设有
pointer-events: none和aria-busy。工具调用完成且载荷通过 Host 校验后,表单提交和写入才会启用。 - 参数片段按会话观察,能够响应窗口更换和取消。不同会话的同名调用 ID 分开处理。
- 新增有资源上限的部分 JSON 恢复和流式状态折叠。遇到无效前缀或超出渲染预算时回退到骨架。
验证通过 160 个自动化用例(含 26 个流式用例)、17 个真实 React 渲染用例、32 项 bundle 检查,以及隔离安装检查。
可通过 dsh plugin --profile desktop add github:ChimeSky/dsh-a2ui#v0.3.0 安装,也可使用下方的固定版本安装包。
English
Progressive streaming release: the card is now drawn while the model is still writing the tool arguments, instead of appearing all at once when the arguments finish.
- The
preparingstage is folded from the argument fragments that have already closed, using the same message batch as the settled snapshot; referenced-but-missing components render as skeletons and nothing is drawn beforerootexists. - The preview is inert (
pointer-events: none,aria-busy), and submit/write paths stay disabled until the call settles and its payload passes Host validation. - Session-scoped fragment observation responds to window replacement and cancellation; different Sessions can no longer overwrite the same call ID.
- New bounded partial-JSON recovery scanner and streaming fold; malformed prefixes or render-budget overruns stop the preview and fall back to the skeleton.
Tests: 160 automated cases (26 streaming cases, 17 real-React render cases overall), 32 bundle invariants and the fresh-home install check pass.
Install: dsh plugin --profile desktop add github:ChimeSky/dsh-a2ui#v0.3.0, or the pinned tarball asset below.
Full notes: CHANGELOG.md