@posthog/agent 2.3.304 → 2.3.305

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.
@@ -5805,7 +5805,7 @@ var import_hono = require("hono");
5805
5805
  // package.json
5806
5806
  var package_default = {
5807
5807
  name: "@posthog/agent",
5808
- version: "2.3.304",
5808
+ version: "2.3.305",
5809
5809
  repository: "https://github.com/PostHog/code",
5810
5810
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
5811
5811
  exports: {
@@ -10461,11 +10461,20 @@ var CodexAcpAgent = class extends BaseAcpAgent {
10461
10461
  meta?.permissionMode
10462
10462
  );
10463
10463
  this.sessionState = createSessionState(params.sessionId, params.cwd, {
10464
+ taskRunId: meta?.taskRunId,
10465
+ taskId: meta?.taskId ?? meta?.persistence?.taskId,
10464
10466
  modeId: response.modes?.currentModeId ?? "auto",
10465
10467
  permissionMode: currentPermissionMode
10466
10468
  });
10467
10469
  this.sessionId = params.sessionId;
10468
10470
  this.sessionState.configOptions = response.configOptions ?? [];
10471
+ if (meta?.taskRunId) {
10472
+ await this.client.extNotification(POSTHOG_NOTIFICATIONS.SDK_SESSION, {
10473
+ taskRunId: meta.taskRunId,
10474
+ sessionId: params.sessionId,
10475
+ adapter: "codex"
10476
+ });
10477
+ }
10469
10478
  return response;
10470
10479
  }
10471
10480
  async unstable_resumeSession(params) {