@posthog/agent 2.3.125 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posthog/agent",
3
- "version": "2.3.125",
3
+ "version": "2.3.126",
4
4
  "repository": "https://github.com/PostHog/code",
5
5
  "description": "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
6
6
  "exports": {
@@ -388,12 +388,14 @@ async function handleDefaultPermissionFlow(
388
388
  updatedInput: toolInput as Record<string, unknown>,
389
389
  };
390
390
  } else {
391
- const message = "User refused permission to run tool";
391
+ const feedback = (
392
+ response._meta?.customInput as string | undefined
393
+ )?.trim();
394
+ const message = feedback
395
+ ? `User refused permission to run tool with feedback: ${feedback}`
396
+ : "User refused permission to run tool";
392
397
  await emitToolDenial(context, message);
393
- return {
394
- behavior: "deny",
395
- message,
396
- };
398
+ return { behavior: "deny", message, interrupt: !feedback };
397
399
  }
398
400
  }
399
401