@monotykamary/pi-retry 0.3.8 → 0.3.9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/retry.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monotykamary/pi-retry",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Extension suite for pi coding agent that handles 400/413 errors and connection errors with automatic retry",
5
5
  "type": "module",
6
6
  "author": "Tom X Nguyen",
package/retry.ts CHANGED
@@ -77,7 +77,8 @@ Agent.prototype.continue = function (this: Agent) {
77
77
  // Catch it — the while-loop will poll _handlePostAgentRun()
78
78
  // again, find no error, and exit cleanly.
79
79
  const msg = e?.message ?? '';
80
- if (msg.includes('Cannot continue from an assistant message') ||
80
+ if (msg.includes('Cannot continue from message role') ||
81
+ msg.includes('Cannot continue from an assistant message') ||
81
82
  msg.includes('Agent is already processing')) {
82
83
  return;
83
84
  }