@canonmsg/agent-sdk 2.1.1 → 2.1.2

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.
@@ -1537,6 +1537,7 @@ export class CanonAgent {
1537
1537
  throw error;
1538
1538
  }
1539
1539
  if (!requestCreated) {
1540
+ shouldPersistTurnState = false;
1540
1541
  throw error;
1541
1542
  }
1542
1543
  shouldPersistTurnState = false;
@@ -1723,6 +1724,10 @@ export class CanonAgent {
1723
1724
  }
1724
1725
  throw error;
1725
1726
  }
1727
+ if (!requestCreated) {
1728
+ shouldPersistTurnState = false;
1729
+ throw error;
1730
+ }
1726
1731
  shouldPersistTurnState = false;
1727
1732
  return result;
1728
1733
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonmsg/agent-sdk",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Canon Agent SDK — build AI agents that participate in Canon conversations",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,7 +28,7 @@
28
28
  "node": ">=18.0.0"
29
29
  },
30
30
  "dependencies": {
31
- "@canonmsg/core": "^1.3.0"
31
+ "@canonmsg/core": "^1.3.1"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"