Calmer Whiteboard Sync and Idle-Room Hibernation
Whiteboard v1.0.2 gives every room the same pencil-sketch defaults and lowers Cloudflare usage through edge auto-responses, hidden-tab parking, change-only batching, and no recurring empty-room polling; brief reconnects no longer show large errors.
# Calmer Whiteboard Sync and Idle-Room Hibernation
Whiteboard is now v1.0.2. Public-board permanence and the 24-hour cleanup boundary for empty password rooms are unchanged; this release makes synchronization work only when it has useful work to do.
## One sketch style for every room
- The public board and every password room share warm paper, graphite strokes, hachure fill, and hand-drawn roughness as their defaults.
- There is currently no second theme selected by room type. Colors, stroke widths, and drawing tools remain editable.
## Synchronize only after change
- Only real canvas changes create durable Yjs updates. They are merged at 250, 500, or 1000 milliseconds according to document size, while pointer positions remain transient broadcasts.
- A visible page sends one lightweight ping every 60 seconds. Cloudflare answers it at the edge without waking a hibernating room.
- After a tab stays hidden for 60 seconds, it first drains unacknowledged strokes and then parks the connection. Returning reconnects and synchronizes the difference automatically.
- During continuous drawing, the cross-room D1 summary is refreshed at most about once per minute; Durable Object storage remains authoritative for the canvas.
## No useless polling in empty rooms
- An empty public room has no recurring lifecycle alarm, while its drawing still persists. One-off cleanup is scheduled only when tickets, assets, or rate state actually expire.
- A password room still keeps only its 24-hour deletion plan after the last participant leaves. Re-entry cancels it and a later departure restarts it.
- Rooms with real connections use a five-minute low-frequency sweep only as a fallback for abnormal disconnects; normal departures are handled immediately.
## Quieter connection feedback
Connection changes shorter than three seconds add no notice. A longer reconnect shows only a small canvas-corner status instead of a central banner or generic error. Access, protocol, capacity, and file errors remain explicit.