claw-code/rust/crates/rusty-claude-cli
Yeachan-Heo 19b66e120a Fix Anthropic tool result request ordering
Sigrid Jin relayed an adamantium Discord field report: Anthropic rejected requests with invalid_request_error when messages contained tool_use ids without immediately following tool_result blocks.

Coalesce consecutive tool-result messages after assistant tool_use blocks into one Anthropic user message, and drop orphan tool_use/tool_result blocks before dispatch so resume/edit/compaction boundary damage cannot reach the provider as a 400.

Tests cover parallel tool results and orphaned resume-boundary history.
2026-04-30 11:03:07 +09:00
..
.claw/sessions feat(runtime): typed task packet format for structured claw dispatch 2026-04-04 00:40:20 +09:00
src Fix Anthropic tool result request ordering 2026-04-30 11:03:07 +09:00
tests docs(#172): correct action-field inventory claim (4 → 3 verbs) + regression guard 2026-04-30 11:03:06 +09:00
Cargo.toml Close the clawability backlog with deterministic CLI output and lane lineage 2026-04-05 18:41:02 +00:00
build.rs fix(#161): resolve actual HEAD path in git worktrees for correct Git SHA in build metadata 2026-04-30 11:03:06 +09:00