The open source coding agent.
TypeScript
fix: add WAL checkpoint on database open (#13633)
Dax67c985ce82b3
diff --git a/packages/opencode/src/storage/db.ts b/packages/opencode/src/storage/db.tsindex 50aa76384e7..387e93b3765 100644--- a/packages/opencode/src/storage/db.ts+++ b/packages/opencode/src/storage/db.ts@@ -74,6 +74,7 @@ export namespace Database {sqlite.run("PRAGMA busy_timeout = 5000")sqlite.run("PRAGMA cache_size = -64000")sqlite.run("PRAGMA foreign_keys = ON")+ sqlite.run("PRAGMA wal_checkpoint(PASSIVE)")const db = drizzle({ client: sqlite, schema })