mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-06 14:00:09 +02:00
The repoCache.Sync() call in loadWatchedWorkspaces runs synchronous git clone/fetch operations that can take minutes for large repos. Because heartbeatLoop and pollLoop only start after loadWatchedWorkspaces returns, the runtime's last_seen_at is never updated during the sync, causing the server's sweeper to mark it offline after 45 seconds. Move repo cache sync to a background goroutine so heartbeat and poll loops start immediately after runtime registration. Closes #825