Windows 下点「停止」后回合被中止了, 但 turn/end 序列化失败, 变成了 host/agent-error #1997
Replies: 1 comment
|
Confirmed at source level and implemented as a cherry-pick-ready branch - your root-cause chain is exact. Source audit (master 47f9438)
Patch: fix/agent-abort-reason-json-safehttps://github.com/zoahdev/deepseek-harness/tree/fix/agent-abort-reason-json-safe
Verification
This closes the loop for auto-recovery plugins like dsh-auto-continue - "user stopped" now looks like a stop. Thanks for the complete repro chain with the reference issue. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Windows + DSH 0.1.0-rc.6
点击 Web GUI 的「停止」按钮中断正在运行的回合
回合确实被中止了, 但客户端收不到 turn/end aborted
取而代之的是 host 广播的 agent-error
日志
浏览器 console 里第三方插件收到:
根因链
一些建议
turn/end aborted 的 reason 在 append 前做 JSON 安全处理
signal.reason 是 DOMException / Error 时, 序列化为 { kind: "user" } 或 message 字符串
这样取消语义能正常到达客户端, 序列化失败不会吞掉 aborted
参考
我们插件因此误发过「继续」, 完整复现链与修复见
HsiangNianian/dsh-auto-continue#2
All reactions