shadok-ai 0.19.44 → 0.19.45

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shadok-ai",
3
- "version": "0.19.44",
3
+ "version": "0.19.45",
4
4
  "main": "dist/session.js",
5
5
  "scripts": {
6
6
  "test": "node --import tsx --test --test-timeout=120000 test/*.ts context/*/test/*.test.mjs",
package/public/index.html CHANGED
@@ -4762,12 +4762,14 @@
4762
4762
  }
4763
4763
  // ── Poll guard (invariant 69) ─────────────────────────────────
4764
4764
  // A periodic poll must be UNABLE to accumulate. A bare `fetch` in a timer has
4765
- // no deadline, so when a server stops answering one endpoint every tick adds a
4766
- // request that never settles. Nothing bounds that pile, and it does not stay
4767
- // this page's problem: the browser's socket pool is shared, so once it is full
4768
- // any NEW connection queues — and a WebSocket needs a new one. Another, healthy
4769
- // cockpit open in a different tab then shows every agent on "connecting…" for
4770
- // ever while its page keeps working (it reuses sockets it already holds).
4765
+ // no deadline and no memory of the previous tick. Against an endpoint that
4766
+ // accepts a request and never answers, that fails in one of two ways. A fixed
4767
+ // interval (the usage poll) adds a request that never settles on every tick —
4768
+ // each one holding one of the half-dozen connections a browser opens to a
4769
+ // host, so a handful is enough to freeze the page's other requests to it. A
4770
+ // self-rescheduling loop (the channel reconciliation) awaits for ever and
4771
+ // simply STOPS: the agent list quietly ceases to update, with nothing on
4772
+ // screen to say so.
4771
4773
  //
4772
4774
  // Two halves, and each is needed. The deadline frees the socket; without the
4773
4775
  // in-flight guard there is still one stuck request per tick until it fires.