Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions apps/hook/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1981,6 +1981,11 @@ if (args[0] === "sessions") {
hookEventName: "PermissionRequest",
decision: {
behavior: "allow",
// Echo the original tool_input as updatedInput. Claude Code
// >= 2.1.199 silently drops an allow decision for ExitPlanMode
// (a tool requiring user interaction) when updatedInput is
// absent, falling back to the built-in approval dialog.
updatedInput: event.tool_input,
...(updatedPermissions.length > 0 && { updatedPermissions }),
},
},
Expand Down