Keep local sessions in a device database
Projects, imports and sessions now live in one SQLite database on your Mac, and a turn cut off by a restart ends cleanly.
Local projects, imports and sessions moved out of loose JSON files into a single database, napdock.sqlite, in the device state. Each save writes only the rows that changed, and reads are checked against a version so a write from another process is never served stale.
When the background service restarts, it now goes through every session that still had a turn marked as running. A turn the restart cut off ends as interrupted and offers Retry, without waiting for you to open the session.
Napdock is pre-release, so sessions from earlier builds are not read. Their files stay on disk and are not deleted.
In the app