[FEATURE] Allow for updated input in `PermissionRequest:ExitPlanTool:Approve` hook
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
I would like to be able to send additional feedback along with approval of a plan with PermissionRequest hook responds with behavior:allow (for tool ExitPlanMode). For instance, accepting a plan but guiding Claude with additional instructions for the plan. This is useful for users who work with spec-driven development.
See a user request here: https://github.com/backnotprop/plannotator/issues/7
Related to #15755
Proposed Solution
Within the hook tool call sequence for approving a plan, iePermissionRequest:ExitPlanTool:Approve, please add the ability to submit extra context.
"hookSpecificOutput": {
"hookEventName": "PermissionRequest",
"decision": {
"behavior": "allow",
"updatedInput": {
"plan": "{full_plan}", // or:
"appendToPlan": "{extra details}"
}
}
}
}
Alternative Solutions
_No response_
Priority
Medium - Would be very helpful
Feature Category
Other
Use Case Example
Plugin, check it out.
https://github.com/backnotprop/plannotator/issues/7
Additional Context
_No response_
18 Comments
https://github.com/bradennapier/ai-model-registry/tree/main/docs/specs
---
It prob makes most sense to just allow sending a
messageproperty so that it works the same way asdenyworks today.This may have been completed in
v2.1.7as well. wow big update to close 2 issues.Never mind. It's in the UI, but not for hooks.
+1 This feature! It'd be really helpful in my workflow.
+1
+1
yes, +1. would be very useful to give feedback on plan- on localhost review
+1
+1
+1
+1
Only adding a +1 to this issue because @backnotprop asked me to 😉
+1
+1
You can do this today. The
PermissionRequesthook'sdecisionobject acceptsupdatedInputalongside"behavior": "allow", and forExitPlanModethe hook input already includes the fullplantext andplanFilePath. Return the plan with your extra guidance appended:The edited plan becomes the approved plan Claude implements (and is written back to the plan file). If you'd rather not rewrite the plan, a
PreToolUsehook can returnadditionalContextto give Claude instructions alongside the approval. Docs: https://code.claude.com/docs/en/hooks#permissionrequest-decision-control🤖 Generated with Claude Code
ah preesh
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.