From f28c4379f088b2d5d0d32cd3d20bb01e0f0d8d79 Mon Sep 17 00:00:00 2001 From: Michael Ramos Date: Wed, 4 Mar 2026 15:18:49 -0800 Subject: [PATCH] fix: add directive framing to deny message so Claude addresses feedback Closes #215 Co-Authored-By: Claude Opus 4.6 --- apps/hook/server/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/hook/server/index.ts b/apps/hook/server/index.ts index 7f7a476..a046f92 100644 --- a/apps/hook/server/index.ts +++ b/apps/hook/server/index.ts @@ -240,7 +240,7 @@ if (args[0] === "review") { hookEventName: "PermissionRequest", decision: { behavior: "deny", - message: result.feedback || "Plan changes requested", + message: `YOUR PLAN WAS NOT APPROVED. You MUST revise the plan to address ALL of the feedback below before calling ExitPlanMode again. Do not resubmit the same plan — use the Edit tool to make targeted changes to the plan file first.\n\n${result.feedback || "Plan changes requested"}`, }, }, })