chat: auto-reload on new deploy (same pattern as dumduel.mjs)
Polls /api/version at boot, then long-polls with the current
deployed id; triggers window:reload when the server reports a
change so open chat tabs pick up new builds without a refresh.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>