@narumitw/pi-retry 0.1.17 → 0.1.19
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/README.md +1 -1
- package/package.json +1 -1
- package/src/unknown-error-retry.ts +1 -1
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ pi -e ./extensions/pi-retry
|
|
|
38
38
|
|
|
39
39
|
When an assistant message ends with `stopReason: "error"` and the error message matches `Unknown error (no error details in response)`, the extension appends Pi's retryable-provider-error hint so Pi's built-in retry path can continue the turn.
|
|
40
40
|
|
|
41
|
-
The extension does not keep a permanent statusline entry. It briefly shows
|
|
41
|
+
The extension does not keep a permanent statusline entry. It briefly shows `🔁 retrying` only when it has matched the error and asked Pi to retry.
|
|
42
42
|
|
|
43
43
|
## 🧠 Use cases
|
|
44
44
|
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ export default function unknownErrorRetry(pi: ExtensionAPI) {
|
|
|
19
19
|
ui: { setStatus: (key: string, value: string | undefined) => void };
|
|
20
20
|
}) => {
|
|
21
21
|
if (clearStatusTimer) clearTimeout(clearStatusTimer);
|
|
22
|
-
ctx.ui.setStatus(STATUS_KEY, "
|
|
22
|
+
ctx.ui.setStatus(STATUS_KEY, "🔁 retrying");
|
|
23
23
|
clearStatusTimer = setTimeout(() => {
|
|
24
24
|
clearStatusTimer = undefined;
|
|
25
25
|
ctx.ui.setStatus(STATUS_KEY, undefined);
|