Skip to content

fix(coderd/x/chatd): validate tool inputs against schemas - #31541

Merged
hugodutka merged 1 commit into
mainfrom
hugodutka/validate-chat-tool-inputs
Nov 3, 2026
Merged

hugodutka merged 1 commit into
mainfrom
hugodutka/validate-chat-tool-inputs

Conversation

@hugodutka

@hugodutka hugodutka commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Builtin tool calls could reach handlers with missing required fields or other arguments that violate their declared schemas. Validate model-proposed inputs before hook dispatch and persistence, return tool errors so the model can correct them, and reject invalid hook overrides.

@hugodutka
hugodutka marked this pull request as ready for review October 30, 2026 16:34
@pr-queue-manager
pr-queue-manager Bot requested review from f0ssel and ibetitsmike and removed request for ibetitsmike October 30, 2026 16:35
@hugodutka
hugodutka force-pushed the hugodutka/validate-chat-tool-inputs branch from 40148bd to ddcbd7a Compare November 3, 2026 13:21
@hugodutka
hugodutka enabled auto-merge (squash) November 3, 2026 15:06
@hugodutka
hugodutka merged commit 788c38a into main Nov 3, 2026
69 of 74 checks passed
@hugodutka
hugodutka deleted the hugodutka/validate-chat-tool-inputs branch November 3, 2026 15:47
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants