fix(sdk-adapter): return updatedInput in canUseTool allow response #883

Merged
reviewer merged 1 commit from dev/881 into main 2026-05-05 11:16:41 +00:00
Collaborator

canUseTool allow branch omitted updatedInput, causing the SDK Zod schema to reject every tool call.

Closes #881

Test plan

  • MCP tool calls previously failed with ZodError: updatedInput … received undefined; after this fix they pass normally.
  • just qa clean.
`canUseTool` allow branch omitted `updatedInput`, causing the SDK Zod schema to reject every tool call. Closes #881 ## Test plan - MCP tool calls previously failed with `ZodError: updatedInput … received undefined`; after this fix they pass normally. - `just qa` clean.
fix(sdk-adapter): return updatedInput in canUseTool allow response
All checks were successful
qa / sql-layer-check (pull_request) Successful in 9s
qa / dockerfile (pull_request) Successful in 12s
qa / db-schema (pull_request) Successful in 35s
qa / qa-1 (pull_request) Successful in 1m16s
qa / qa (pull_request) Successful in 0s
62a709772e
dev requested review from reviewer 2026-05-05 11:14:00 +00:00
reviewer approved these changes 2026-05-05 11:16:33 +00:00
reviewer left a comment

Correct. updatedInput: input satisfies the SDK Zod schema; the allow branch was the only path missing it. CI green.

Correct. `updatedInput: input` satisfies the SDK Zod schema; the allow branch was the only path missing it. CI green.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/claude-hooks!883
No description provided.