You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
rc.8 复现 #1695 崩溃链:prepare 抛错后会话永久 400,直至完整退出进程。
复现、预期与验收
复现步骤:
dsh web启动会话;cordis.yml(插件配置变更,与崩溃起点完全重合);skill、bash等,不限于单一工具)。实际结果:
崩溃轮事件序列(来自
session.jsonl.zstd,示例会话 A,seq 为事件序号):tool/callcall_00_hlsIC056b2LR7pKpxUDb8899,namebashstep/endturn/end{"kind":"error","error":{"message":"Cannot read properties of undefined (reading 'prepare')","code":"UNKNOWN"}};自始至终无tool/resultturn/end(第 2 轮)INVALID_REQUEST:"insufficient tool messages following tool_calls message"turn/end(第 3 轮)示例会话 B:
tool/call skill(call_00_zfNTZ4tcMLpgNJZLJDFL7876)→ 同一undefined.prepare→ 下一轮 400。五个会话连环(损坏进程内新会话同样复现,与 [BUG] 工具执行中途崩溃后会话永久卡死:DeepSeek 400 "insufficient tool messages"(rc.6) #1695 一致):
undefined.prepare次数处置与结论:备份
$DSH_HOME后完整退出 dsh 进程(非刷新页面),新会话恢复;五个已损坏会话冷重启后依旧 400(冷修复只补未闭合 turn,本场景 turn 已闭合、仅缺工具结果),与 [BUG] 工具执行中途崩溃后会话永久卡死:DeepSeek 400 "insufficient tool messages"(rc.6) #1695 实测结论一致。预期结果:
tool/call已记录后,若调度器prepare/dispatch抛错,应补一条同 callId 的合成错误tool/result再关闭 step/turn;tool_calls与tool结果一一配对;发现历史遗留的不完整配对时,给出可诊断的会话修复路径,而非裸 400。环境:
dsh web验收条件:
tool_calls,或崩溃后同一会话下一轮可正常继续;相关:#1695(rc.6 首报,已附英文事件级证据评论);本讨论按仓库 bug 模板以中文提交,便于检索。
All reactions