Commit Graph

7 Commits

Author SHA1 Message Date
aisling404
5d04fdd94b fix(agents): skip tool extraction for aborted/errored assistant messages
When stopReason is 'error' or 'aborted', tool_use blocks may be incomplete
(e.g., partialJson: true). Creating synthetic tool_results for these causes
API 400 errors: 'unexpected tool_use_id found in tool_result blocks'

This fix skips tool call extraction for failed messages, preventing session
corruption after interruptions while preserving normal repair behavior.

Adds tests for error, aborted, and normal (toolUse) stopReason cases.
2026-01-30 11:03:00 +00:00
Peter Steinberger
9a7160786a refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
Peter Steinberger
6d16a658e5 refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
Peter Steinberger
c379191f80 chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
2026-01-14 15:02:19 +00:00
Peter Steinberger
f5d5661adf fix: guard session tool results 2026-01-12 17:28:46 +00:00
Peter Steinberger
6668805aca fix(agents): enforce single-writer session files 2026-01-11 02:25:45 +00:00
Peter Steinberger
08cc8f2281 refactor(agents): extract transcript repair module 2026-01-10 22:07:25 +00:00