clay-server 2.20.1-beta.16 → 2.20.1-beta.17

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/lib/sdk-worker.js CHANGED
@@ -394,6 +394,9 @@ async function handleWarmup(msg) {
394
394
 
395
395
  // --- Cleanup ---
396
396
  function cleanup() {
397
+ if (_keepAlive) {
398
+ try { clearInterval(_keepAlive); } catch (e) {}
399
+ }
397
400
  if (abortController) {
398
401
  try { abortController.abort(); } catch (e) {}
399
402
  }
@@ -405,6 +408,10 @@ function cleanup() {
405
408
  }
406
409
  }
407
410
 
411
+ // Keep event loop alive — without this, Node may exit if the socket handle
412
+ // gets unreferenced (observed on Linux with uid/gid spawn)
413
+ var _keepAlive = setInterval(function() {}, 30000);
414
+
408
415
  // --- Connect to daemon socket ---
409
416
  try { require("fs").writeSync(2, "[sdk-worker] Connecting to socket: " + socketPath + "\n"); } catch (e) {}
410
417
  conn = net.connect(socketPath, function() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clay-server",
3
- "version": "2.20.1-beta.16",
3
+ "version": "2.20.1-beta.17",
4
4
  "description": "Web UI for Claude Code. Any device. Push notifications.",
5
5
  "bin": {
6
6
  "clay-server": "./bin/cli.js",