opencode-statboard 2.10.25 → 2.10.26
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 +1 -1
- package/server.js +5 -1
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -1584,7 +1584,6 @@ async function startServer() {
|
|
|
1584
1584
|
|
|
1585
1585
|
(async () => {
|
|
1586
1586
|
try {
|
|
1587
|
-
await startServer();
|
|
1588
1587
|
// Serve the persisted bundle + tool counts IMMEDIATELY. Nothing on this
|
|
1589
1588
|
// path touches the live DB, so the first request answers in milliseconds
|
|
1590
1589
|
// instead of waiting out a 3-29s scan.
|
|
@@ -1623,6 +1622,11 @@ async function startServer() {
|
|
|
1623
1622
|
if (t) trendCache[String(d)] = t;
|
|
1624
1623
|
} catch (_) {}
|
|
1625
1624
|
}
|
|
1625
|
+
// Open the port only once there is real data to paint. Listening first made
|
|
1626
|
+
// the browser paint an empty "updating" shell and then swap in numbers,
|
|
1627
|
+
// which is exactly what a 16s LCP looks like. With a cache present this is
|
|
1628
|
+
// ~1s after launch; on a cold machine the wait is the scan itself.
|
|
1629
|
+
await startServer();
|
|
1626
1630
|
setInterval(refresh, REFRESH_MS);
|
|
1627
1631
|
setInterval(refreshModels, 60000);
|
|
1628
1632
|
setInterval(refreshAttrBundle, 60000);
|