Skip to content

[codex] Clarify string tool input errors#599

Merged
jahooma merged 1 commit intomainfrom
jahooma/clarify-tool-json-error
May 6, 2026
Merged

[codex] Clarify string tool input errors#599
jahooma merged 1 commit intomainfrom
jahooma/clarify-tool-json-error

Conversation

@jahooma
Copy link
Copy Markdown
Contributor

@jahooma jahooma commented May 6, 2026

This PR clarifies the error shown when a tool input reaches validation as a string instead of an object.
It distinguishes malformed or incomplete JSON from cases where repeated parsing succeeds but still leaves a string, so agents get more precise retry guidance.
It updates the tool validation tests and adds coverage for over-encoded string inputs.
Validation: bun test packages/agent-runtime/src/__tests__/tool-validation-error.test.ts and git diff --check origin/main....

@jahooma jahooma merged commit 5fd1dbd into main May 6, 2026
35 checks passed
@jahooma jahooma deleted the jahooma/clarify-tool-json-error branch May 6, 2026 01:44
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