Skip to content

fix invalid tool args in a replayed Responses item - #305

Open
pyk wants to merge 1 commit into
vercel-labs:mainfrom
pyk:fix-tool-repair
Open

pyk wants to merge 1 commit into
vercel-labs:mainfrom
pyk:fix-tool-repair

Conversation

@pyk

@pyk pyk commented Sep 23, 2026 •

Copy link
Copy Markdown

@msullivan I found an edge case where invalid tool calls got send as request payload. this pr fix it

@vercel

vercel Bot commented Sep 23, 2026

Copy link
Copy Markdown

@pyk is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

``arguments``/``input`` here and fall back to the repaired ``tool_args``.

``raw_item`` is an owned copy from ``_raw_item_from_metadata``.
"""

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_sanitized_raw_item JSON-validates custom_tool_call.input, corrupting valid free-form text input to "{}" on replay

Fix on Vercel

This branch has not been deployed

No deployments
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