@posthog/agent 2.3.116 → 2.3.126

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/agent.js CHANGED
@@ -371,7 +371,7 @@ import { v7 as uuidv7 } from "uuid";
371
371
  // package.json
372
372
  var package_default = {
373
373
  name: "@posthog/agent",
374
- version: "2.3.116",
374
+ version: "2.3.126",
375
375
  repository: "https://github.com/PostHog/code",
376
376
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
377
377
  exports: {
@@ -2488,12 +2488,10 @@ async function handleDefaultPermissionFlow(context) {
2488
2488
  updatedInput: toolInput
2489
2489
  };
2490
2490
  } else {
2491
- const message = "User refused permission to run tool";
2491
+ const feedback = response._meta?.customInput?.trim();
2492
+ const message = feedback ? `User refused permission to run tool with feedback: ${feedback}` : "User refused permission to run tool";
2492
2493
  await emitToolDenial(context, message);
2493
- return {
2494
- behavior: "deny",
2495
- message
2496
- };
2494
+ return { behavior: "deny", message, interrupt: !feedback };
2497
2495
  }
2498
2496
  }
2499
2497
  function handlePlanFileException(context) {