claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[FEATURE] Allow for updated input in `PermissionRequest:ExitPlanTool:Approve` hook

Open backnotprop opened this issue 4 months ago • 3 comments

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

backnotprop avatar Jan 01 '26 20:01 backnotprop

https://github.com/bradennapier/ai-model-registry/tree/main/docs/specs

  • Incremental spec driven dev <3
  • stateful and resumable

It prob makes most sense to just allow sending a message property so that it works the same way as deny works today.

bradennapier avatar Jan 01 '26 22:01 bradennapier

This may have been completed in v2.1.7 as well. wow big update to close 2 issues.

backnotprop avatar Jan 14 '26 00:01 backnotprop

• Added ability to provide feedback when accepting permission prompts

backnotprop avatar Jan 14 '26 00:01 backnotprop

Never mind. It's in the UI, but not for hooks.

backnotprop avatar Jan 14 '26 04:01 backnotprop

+1 This feature! It'd be really helpful in my workflow.

theramjad avatar Jan 19 '26 02:01 theramjad

+1

gaodes avatar Jan 30 '26 14:01 gaodes

+1

Jassu225 avatar Feb 04 '26 18:02 Jassu225

yes, +1. would be very useful to give feedback on plan- on localhost review

Ro444elle avatar Feb 11 '26 20:02 Ro444elle

+1

metodn avatar Feb 24 '26 15:02 metodn