@code-yeongyu/senpi-ai 2026.9.4-2 → 2026.9.4-3
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/dist/api/cursor-agent.js +4 -4
- package/dist/api/cursor-agent.js.map +1 -1
- package/dist/providers/data/.manifest.json +1 -1
- package/dist/providers/data/openrouter.json +1 -1
- package/dist/utils/retry.d.ts.map +1 -1
- package/dist/utils/retry.js +3 -0
- package/dist/utils/retry.js.map +1 -1
- package/package.json +2 -2
package/dist/api/cursor-agent.js
CHANGED
|
@@ -532,10 +532,6 @@ export const stream = (model, context, options) => {
|
|
|
532
532
|
if (h2Settled)
|
|
533
533
|
return;
|
|
534
534
|
h2Settled = true;
|
|
535
|
-
if (streamHealthTimer) {
|
|
536
|
-
clearTimeout(streamHealthTimer);
|
|
537
|
-
streamHealthTimer = null;
|
|
538
|
-
}
|
|
539
535
|
if (error !== undefined) {
|
|
540
536
|
rejectH2(error);
|
|
541
537
|
return;
|
|
@@ -958,6 +954,10 @@ export const stream = (model, context, options) => {
|
|
|
958
954
|
clearInterval(heartbeatTimer);
|
|
959
955
|
heartbeatTimer = null;
|
|
960
956
|
}
|
|
957
|
+
if (streamHealthTimer) {
|
|
958
|
+
clearTimeout(streamHealthTimer);
|
|
959
|
+
streamHealthTimer = null;
|
|
960
|
+
}
|
|
961
961
|
h2Request?.close();
|
|
962
962
|
h2Client?.close();
|
|
963
963
|
h2Request = null;
|