@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.
package/dist/agent.js CHANGED
@@ -245,7 +245,7 @@ import { v7 as uuidv7 } from "uuid";
245
245
  // package.json
246
246
  var package_default = {
247
247
  name: "@posthog/agent",
248
- version: "2.3.304",
248
+ version: "2.3.305",
249
249
  repository: "https://github.com/PostHog/code",
250
250
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
251
251
  exports: {
@@ -4797,11 +4797,20 @@ var CodexAcpAgent = class extends BaseAcpAgent {
4797
4797
  meta?.permissionMode
4798
4798
  );
4799
4799
  this.sessionState = createSessionState(params.sessionId, params.cwd, {
4800
+ taskRunId: meta?.taskRunId,
4801
+ taskId: meta?.taskId ?? meta?.persistence?.taskId,
4800
4802
  modeId: response.modes?.currentModeId ?? "auto",
4801
4803
  permissionMode: currentPermissionMode
4802
4804
  });
4803
4805
  this.sessionId = params.sessionId;
4804
4806
  this.sessionState.configOptions = response.configOptions ?? [];
4807
+ if (meta?.taskRunId) {
4808
+ await this.client.extNotification(POSTHOG_NOTIFICATIONS.SDK_SESSION, {
4809
+ taskRunId: meta.taskRunId,
4810
+ sessionId: params.sessionId,
4811
+ adapter: "codex"
4812
+ });
4813
+ }
4805
4814
  return response;
4806
4815
  }
4807
4816
  async unstable_resumeSession(params) {