Previously, if the ClaudeWorker record vanished (deleted by prisma_workers_cleanup, manual cleanup, or a race during shutdown of a parallel worker), the heartbeat would log a warning and stop itself permanently. From that moment the NavBar showed 'Geen agent' for the rest of the MCP-server process lifetime — even though the agent was still alive and serving tools. Fix: on result.count === 0, call registerWorker again so the record is re-created. Heartbeat keeps ticking. Self-healing instead of self- terminating. startHeartbeat now also accepts userId (needed for re-registration); caller in index.ts updated. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| git | ||
| lib | ||
| presence | ||
| prompts | ||
| tools | ||
| verify | ||
| access.ts | ||
| auth.ts | ||
| errors.ts | ||
| index.ts | ||
| prisma.ts | ||
| status.ts | ||