1 Commits
Author SHA1 Message Date
CatoandClaude 1f1f40429c fix(builder): sessions survive cloud builder updates (#1326)
Every deploy restarted the cloud builder, and a restart ends every session
it holds. The drain waited for nobody to be mid-task, then logged "idle
sessions resume on their next dispatch" — nothing resumed them. The owner
found "No live sessions" after each of five deploys in one afternoon.

- The builder writes down each session it opens (~/.loki/open-tabs.json)
  and crosses it off only when it really ends: closed from Loki, or the
  agent exited while the builder stayed up. On start it reopens the rest;
  Claude sessions come back as the same conversation (claude --resume).
- Deploys compare runner files by content (rsync --checksum). A fresh
  checkout gives every file a new mtime, so every deploy, docs-only
  included, read as a runner change and restarted it.
- The manifest sync no longer lists a package-lock.json this pnpm repo
  does not have; its rsync error blanked the output and hid real changes.
- Runner 0.8.47; the drain log says what happens now.


Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 15:47:07 +02:00