State & Persistence
What is persisted
- Open windows: type, title, and Reader path are saved to
localStorage. - Window UI state: position, size, maximize state, and snapped side are saved locally.
- Window UI state is now mode-aware for
desktop,tablet, andmobileso small-screen restores do not reuse broken desktop geometry. - Desktop icon positions are saved locally and are now scoped by viewport mode.
- Update Center last-seen and session-dismissed release state is stored locally.
- Analytics consent state is stored locally.
On reload, the shell rehydrates local window and icon state. Reader-managed routes may also reopen a Reader window because the route itself is treated as application state.
Where
- Local key:
os_windows_v1 - Local key:
os_window_ui_v3 - Local key:
os_icon_pos_v4 - Local key:
os_updates_last_seen_release_v1 - Local key:
os_updates_dismissed_session_v1
Reset Behavior
Reset OS Stateclears the main desktop and window keys and then reloads the current route.- Reset clears legacy window/layout keys as well as the current
os_window_ui_v3andos_icon_pos_v4keys. - Reset does not change the browser URL.
- Because of that, resetting while on
/blog,/docs, or/handbookmay reopen the Reader after reload.
Current Limits
- Desktop icon selection itself is not persisted; only icon positions are.
- Some state is route-driven rather than storage-driven.
- There is no cross-device sync layer in the current implementation.
- Desktop icon positions are now mode-aware for
desktop,tablet, andmobile.