@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.
- package/package.json +1 -1
- package/retry.ts +2 -1
package/package.json
CHANGED
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
|
|
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
|
}
|