You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6f4a8e6
Browse filesBrowse the repository at this point in the historyBrowse files
fix(upload): read the session store when no codev process has it open (#378)
opencode.db runs in WAL mode. The Bun session reader opened it read-only,
and a read-only connection cannot create the -wal/-shm side files a WAL
read needs. While a codev process holds the store they exist; after the
last one closes cleanly they are gone, and Bun's SQLite fails the first
query with SQLITE_CANTOPEN — so `codev upload`, `codev upload --logs`,
or a stats push with nothing else running found no sessions.
The Bun driver now probes the read-only connection and, only on
SQLITE_CANTOPEN, reopens read-write without create so SQLite recreates
the side files as any WAL reader does; the reader still only runs
SELECTs, and a missing store is never created. node:sqlite (the desktop
sidecar's driver) already handles this case; the parity test now covers
it for both drivers.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments