--- # claudbg-edmr title: 'Lazy sync: process session files on read' status: completed type: task priority: normal created_at: 2026-03-27T19:39:33Z updated_at: 2026-03-28T17:38:48Z parent: claudbg-6wkk --- Implemented ensure_synced() and force_resync() in src/db/sync.rs. Fixed database locked issue by scoping connection/rows before upsert write. All 3 sync tests pass.