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
任意外部 harness 线程一旦在投影阶段抛出一个不变量异常,该线程永久卡死:composer 转圈不停、后续所有 turn/start 被 -32072 "External Thread already has an active Turn" 拒绝、ExternalThreadRuntime.replace() 拒绝重开("cannot replace an active or stale Session"),唯一恢复手段是重启 host。
验证:新增回归测试馈入重复 item/started(触发 "Codex Item started more than once"),断言恢复后线程可正常完成新 turn;host-runtime 355 通过。该修复同时是其余投影类缺陷的止损阀:任何适配器未来的事件乱序/重复只会产生一个错误项,不再升级为线程永久不可用。
Activity
wosnxn123 commentedon Sep 6, 2026
【状态:已修复,待合并】PR: #182 (commit
fix(host-runtime): …)修复内容:
#consumeHarnessOutputs改为 per-output try/catch;投影抛错时走新增的#recoverFailedProjection——合成失败终端(error 帧 +turn/completed status:"failed",items 取自 pendingTurn)、解决该 turn 未决的 Desktop 审批/提问、清理running/activeTurnId/projectedTurns/responseGates(resolve gate)、push 失败 turn 并重置 historyHydrated、delegation 标记 failed、发 idlethread/status/changed、diagnose,然后继续 drainsession.outputs,绝不停止消费。验证:新增回归测试馈入重复
item/started(触发 "Codex Item started more than once"),断言恢复后线程可正常完成新 turn;host-runtime 355 通过。该修复同时是其余投影类缺陷的止损阀:任何适配器未来的事件乱序/重复只会产生一个错误项,不再升级为线程永久不可用。