@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.
@@ -904,7 +904,7 @@ var import_hono = require("hono");
904
904
  // package.json
905
905
  var package_default = {
906
906
  name: "@posthog/agent",
907
- version: "2.3.116",
907
+ version: "2.3.126",
908
908
  repository: "https://github.com/PostHog/code",
909
909
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
910
910
  exports: {
@@ -3352,12 +3352,10 @@ async function handleDefaultPermissionFlow(context) {
3352
3352
  updatedInput: toolInput
3353
3353
  };
3354
3354
  } else {
3355
- const message = "User refused permission to run tool";
3355
+ const feedback = response._meta?.customInput?.trim();
3356
+ const message = feedback ? `User refused permission to run tool with feedback: ${feedback}` : "User refused permission to run tool";
3356
3357
  await emitToolDenial(context, message);
3357
- return {
3358
- behavior: "deny",
3359
- message
3360
- };
3358
+ return { behavior: "deny", message, interrupt: !feedback };
3361
3359
  }
3362
3360
  }
3363
3361
  function handlePlanFileException(context) {
@@ -12184,6 +12182,9 @@ You MUST NOT create a new branch, close the existing PR, or create a new PR.`
12184
12182
  }
12185
12183
  }
12186
12184
  });
12185
+ this.logger.info("User message completed", {
12186
+ stopReason: result.stopReason
12187
+ });
12187
12188
  this.broadcastTurnComplete(result.stopReason);
12188
12189
  if (result.stopReason === "end_turn") {
12189
12190
  this.relayAgentResponse(this.session.payload).catch(