Re-connection bits

Nice to see auto-reconnect land. It’s the same problem space as Novastart, a collaborative infinite canvas we’re building, so a couple of thoughts for the follow-up on the focus loss:

  • It may help to treat focus as explicit state rather than relying on the DOM keeping it: note which editing context had focus (and the caret/selection) when the socket drops, then restore it once the reconnect handshake completes. That would cover shape editing and dialogs, not only the Writer canvas.
  • Keystrokes typed during the gap could be buffered client-side and replayed after reconnect, so the text doesn’t silently vanish.

+1 on a short transient notice instead of only the admin console. A quiet “Reconnected” message that fades after a few seconds explains why the cursor jumped without nagging anyone.