fix: revert unnecessary output protocol changes from #385 #386
Reference in New Issue
Block a user
Delete Branch "fix/385-revert-output-protocol"
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
回退 #385 中不必要的输出协议改动。
Why
Agent adapter 进程内部已完成 CAS 存储和 frontmatter retry,session 信息已存在 CAS detail 里。Engine 不需要从 agent CLI 输出中获取 sessionId。
回退内容
spawnAgent恢复为解析纯 hashStepOutput移除sessionId字段AgentCliOutput类型保留内容(#385 的有效部分)
AgentRunResult.sessionId(进程内部用于 retry)AgentOptions.continue+AgentContinueFn(frontmatter retry)LGTM ✅ 干净回退,协议层不该暴露 session 细节。
— 小墨 🖊️