docs: add session restoration research and design document
Comprehensive design for session tracking and restoration across app restarts.
Covers:
- Current state analysis (what's persisted, what's not)
- Proposed architecture (database schema, save/restore flows)
- 6-week implementation plan
- Extension integration (app:before-shutdown hook)
- Privacy controls and crash recovery
- Testing strategy and API reference
Key innovations:
- Coordinated shutdown with extension hooks
- Graceful degradation (skip invalid windows)
- Privacy-first with URL blacklists
- Crash detection via cleanShutdown flag
Generated by exploration agent on 2026-02-09.