fix(uwf-hermes): read turn data from session file instead of ACP stream #520
Reference in New Issue
Block a user
Delete Branch "fix/519-read-session-file"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
从 Hermes session JSON 文件读取 turn 数据,替代从 ACP 流式 update 重建。
Why
ACP 协议的 tool_call update 只有展示用的 title(没有结构化工具名),且常用工具不填 rawInput,导致 uwf step show/read 显示的 name 和 args 全是错的。
Changes
Ref
Closes #519
LGTM ✅ 正确的架构决策 — 从 session 文件读结构化数据比从 ACP 流重建靠谱得多。ACP client 瘦身效果显著,删掉了 pendingTools/messages/reasoning 整套收集逻辑,只保留 text chunk 拼接。step read 的 formatTurnBody 渲染也清晰。