@bivy/bivy 0.15.0-staging.34 → 0.15.0-staging.36
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/server.js +7 -4
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -1643,11 +1643,14 @@ function stampSessionEvent(payload) {
|
|
|
1643
1643
|
return payload;
|
|
1644
1644
|
}
|
|
1645
1645
|
// Collapse the burst of assistant `message_update`s (one per agent stdout line,
|
|
1646
|
-
// each carrying the FULL text so far)
|
|
1647
|
-
//
|
|
1646
|
+
// each carrying the FULL text so far) to a human-smooth 4 fps. A 16 ms window
|
|
1647
|
+
// still allowed up to 62 cumulative snapshots/second, making a long answer
|
|
1648
|
+
// quadratic and surprisingly expensive over a phone's relay connection. The
|
|
1649
|
+
// latest snapshot supersedes every skipped one, and non-update events flush it
|
|
1650
|
+
// immediately, so 250 ms changes neither final content nor event ordering.
|
|
1648
1651
|
// The coalescer's emit stamps the surviving (latest) update, so only ~one seq is
|
|
1649
|
-
// spent per
|
|
1650
|
-
const SESSION_UPDATE_COALESCE_MS =
|
|
1652
|
+
// spent per window — the ring holds turn-scale events, not every stdout line.
|
|
1653
|
+
const SESSION_UPDATE_COALESCE_MS = 250;
|
|
1651
1654
|
const sessionEvents = new SessionEventCoalescer({
|
|
1652
1655
|
coalesceMs: SESSION_UPDATE_COALESCE_MS,
|
|
1653
1656
|
emit: (payload) => broadcastCoalesced(stampSessionEvent(payload)),
|
package/package.json
CHANGED