fix(core): sanitize optional tool metadata on permission requests - #40052
anujbolewar wants to merge 1 commit into
Conversation
Omit undefined keys in glob/grep tool metadata construction and recursively sanitize metadata in permission request creation to prevent JSON schema encoding failures. Fixes anomalyco#37650
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
The following comment was made by an LLM, it may be inaccurate: I found several related PRs addressing similar issues with undefined metadata in permission requests: Potential Duplicates:
All three PRs appear to be addressing the same root cause (undefined values in tool metadata causing JSON schema encoding failures). You should verify whether PR #40052 is a new attempt to address these issues or if it duplicates work already completed in one of these earlier PRs. |
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window. Feel free to open a new pull request that follows our guidelines. |
Omit undefined keys in glob/grep tool metadata construction and recursively sanitize metadata in permission request creation to prevent JSON schema encoding failures.