@monotykamary/pi-retry 0.3.6 → 0.3.7
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 +10 -4
package/package.json
CHANGED
package/retry.ts
CHANGED
|
@@ -355,10 +355,16 @@ export default function (pi: ExtensionAPI) {
|
|
|
355
355
|
// finishRun() after agent_end listeners return).
|
|
356
356
|
await _agent.waitForIdle();
|
|
357
357
|
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
358
|
+
try {
|
|
359
|
+
// Await so _continueInProgress stays true for the full retry.
|
|
360
|
+
// The session's continue() is blocked (monkey-patch) and the
|
|
361
|
+
// session's _runAgentPrompt stays alive, keeping the UI
|
|
362
|
+
// "Working…" until the agent is actually done.
|
|
363
|
+
await _agent.prompt([]);
|
|
364
|
+
} catch {
|
|
365
|
+
// Ignore — if prompt throws, something else is driving.
|
|
366
|
+
// The session will handle it or report the error.
|
|
367
|
+
}
|
|
362
368
|
} finally {
|
|
363
369
|
_continueInProgress = false;
|
|
364
370
|
}
|