@bivy/bivy 0.15.0-staging.35 → 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.
Files changed (2) hide show
  1. package/dist/server.js +7 -4
  2. 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) into ~1 fan-out per tick. See
1647
- // session-event-coalescer.ts for the rationale (kills the O(n^2) re-serialize).
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 tick — the ring holds turn-scale events, not every stdout line.
1650
- const SESSION_UPDATE_COALESCE_MS = 16;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bivy/bivy",
3
- "version": "0.15.0-staging.35",
3
+ "version": "0.15.0-staging.36",
4
4
  "type": "module",
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "Run coding agents on machines you own. Open-source, self-hostable agent workspace.",