@monotykamary/pi-retry 0.6.0 → 0.6.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.
- package/package.json +3 -3
- package/retry.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monotykamary/pi-retry",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
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",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"lint:dead": "knip --no-gitignore"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@earendil-works/pi-agent-core": "^0.79.
|
|
44
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
43
|
+
"@earendil-works/pi-agent-core": "^0.79.8",
|
|
44
|
+
"@earendil-works/pi-coding-agent": "^0.79.8",
|
|
45
45
|
"@types/node": "25.9.1",
|
|
46
46
|
"@vitest/coverage-v8": "4.1.7",
|
|
47
47
|
"knip": "6.14.1",
|
package/retry.ts
CHANGED
|
@@ -73,6 +73,10 @@ Agent.prototype.subscribe = function (this: Agent, ...args: any[]) {
|
|
|
73
73
|
// with our _continueInProgress mutex AND can convert the "Cannot continue
|
|
74
74
|
// from assistant" error into a prompt([]) call when the agent was mid-task
|
|
75
75
|
// (compaction, toolUse, length — but NOT error, which the loop handles).
|
|
76
|
+
//
|
|
77
|
+
// Note (pi 0.79+): Agent.continue() now drains queued steering/follow-up
|
|
78
|
+
// messages before throwing, so this throw path only fires when there are
|
|
79
|
+
// genuinely no queued messages — the prompt([]) fallback is still correct.
|
|
76
80
|
const _origContinue = Agent.prototype.continue as (this: Agent) => Promise<void>;
|
|
77
81
|
Agent.prototype.continue = function (this: Agent) {
|
|
78
82
|
const self = this;
|