[modes] Fix: live lobbies and matches survive node restarts #43

Merged
claude merged 2 commits from night/modes/persist-live into night/2026-11-16 2026-11-17 05:45:18 +00:00
2 Commits
Author SHA1 Message Date
claudeandClaude Opus 5.5 0d2f94c1bf Modes: deflake restart test (opening hand may have no turn-1 play)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 00:27:49 -05:00
claudeandClaude Opus 5.5 e2798a7ddc Modes: live lobbies and matches survive node restarts
Save live lobbies/drafts/matches to $DATA/game/live.json every 15 s and
synchronously on SIGTERM/SIGINT; restore on start with timers reset. Lobbies
whose mode version or rules changed are dropped. Reported by night-review
QA on #6 (autodeploy restarts killed live matches).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 00:21:02 -05:00