@kenkaiiii/gg-ai 5.49.3 → 5.49.5
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/index.cjs +9 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1621,7 +1621,15 @@ async function* runStream(options) {
|
|
|
1621
1621
|
yield keepalive;
|
|
1622
1622
|
break;
|
|
1623
1623
|
}
|
|
1624
|
-
// message_stop — loop exits naturally
|
|
1624
|
+
// message_stop — loop exits naturally.
|
|
1625
|
+
//
|
|
1626
|
+
// Deliberately NOT breaking early here. Breaking makes the SDK iterator
|
|
1627
|
+
// run `if (!done) controller.abort()` in its `finally`
|
|
1628
|
+
// (core/streaming.js:97), which tears the connection down instead of
|
|
1629
|
+
// returning it to the keep-alive pool — every turn would then pay a
|
|
1630
|
+
// fresh TLS handshake. Draining to the end is what every other Anthropic
|
|
1631
|
+
// client does, and the stall it guards against is handled by the agent
|
|
1632
|
+
// loop's idle timeout.
|
|
1625
1633
|
default:
|
|
1626
1634
|
yield keepalive;
|
|
1627
1635
|
break;
|