--- # claudbg-edmr title: 'Lazy sync: process session files on read' status: todo type: task created_at: 2026-03-27T19:39:33Z updated_at: 2026-03-27T19:39:33Z parent: claudbg-6wkk --- Before serving any session data, check if the session's file_mtime and file_size in the DB match the file on disk. If not (or if absent), parse the file and upsert into all tables. Skip files that are already up to date. This runs transparently before every command that reads session data.