mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-23 14:18:13 +00:00
normalizeAgentEventType checked the `phase:"end" || status==="completed"` branch before the `failed/blocked` branch, but terminal tool/item events are emitted with phase:"end" AND the real status, so failed and blocked tools were normalized to tool.call.completed and the tool.call.failed branch was dead for the item stream. SDK consumers filtering on tool.call.failed never saw tool failures (they looked like successes). Reorder so failed/blocked is classified before end/completed. Co-authored-by: ly-wang19 <ly-wang19@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>