@posthog/agent 2.1.69 → 2.1.70

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.
@@ -1175,7 +1175,7 @@ var import_uuid = require("uuid");
1175
1175
  // package.json
1176
1176
  var package_default = {
1177
1177
  name: "@posthog/agent",
1178
- version: "2.1.69",
1178
+ version: "2.1.70",
1179
1179
  repository: "https://github.com/PostHog/twig",
1180
1180
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
1181
1181
  exports: {
@@ -3596,15 +3596,14 @@ var ClaudeAcpAgent = class extends BaseAcpAgent {
3596
3596
  }
3597
3597
  }
3598
3598
  async setModelWithFallback(q, modelId) {
3599
+ const sdkModelId = toSdkModelId(modelId);
3599
3600
  try {
3600
- await q.setModel(modelId);
3601
- return;
3601
+ await q.setModel(sdkModelId);
3602
3602
  } catch (err) {
3603
- const fallback = toSdkModelId(modelId);
3604
- if (fallback === modelId) {
3603
+ if (sdkModelId === modelId) {
3605
3604
  throw err;
3606
3605
  }
3607
- await q.setModel(fallback);
3606
+ await q.setModel(modelId);
3608
3607
  }
3609
3608
  }
3610
3609
  /**