Skip to content

fix: coerce non-object tool_use input to empty object#57

Merged
jbj338033 merged 1 commit into
mainfrom
worktree-simplify
Jun 15, 2026
Merged

fix: coerce non-object tool_use input to empty object#57
jbj338033 merged 1 commit into
mainfrom
worktree-simplify

Conversation

@jbj338033

Copy link
Copy Markdown
Collaborator

Summary

Fixes the Anthropic messages.*.content.*.tool_use.input: Input should be an object error. Argument-less tool calls stream an empty input string that became null; the engine now normalizes any empty/non-object tool input to {} on receipt, and every provider serializer guards the tool_use input so legacy null history cannot re-trigger the error.

Verification

  • cargo clippy --workspace --all-targets -- -D warnings — passed
  • cargo test --workspace — passed

@jbj338033 jbj338033 merged commit 8250dbf into main Jun 15, 2026
5 checks passed
@jbj338033 jbj338033 deleted the worktree-simplify branch June 15, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant