Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
One change · claude-code

Handle approvals and user input changed

agent-sdk/user-input

Nearest release: v2.1.251, published 3 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+0added
Lines−20removed
From line 213 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits8to this page, all time

The whole hunk

from line 213, old and new numbered
/
lines
from line 213
213213 
214214When denying, provide a message explaining why. Claude sees this message and may adjust its approach.
215215 
216<CodeGroup>
217 ```python Python theme={null}
218 from claude_agent_sdk.types import PermissionResultAllow, PermissionResultDeny
219 
220 # Allow the tool to execute
221 return PermissionResultAllow(updated_input=input_data)
222 
223 # Block the tool
224 return PermissionResultDeny(message="User rejected this action")
225 ```
226 
227 ```typescript TypeScript theme={null}
228 // Allow the tool to execute
229 return { behavior: "allow", updatedInput: input };
230 
231 // Block the tool
232 return { behavior: "deny", message: "User rejected this action" };
233 ```
234</CodeGroup>
235 
236216Beyond allowing or denying, you can modify the tool's input or provide context that helps Claude adjust its approach:
237217 
238218* **Approve**: let the tool execute as Claude requested