Dashboard › opencode-lore › SourceWindowStore busy_timeout
01a0a45d-362e-7df3-abbc-f8566cdc09f5Trap: letting source-window creation use SQLite’s normal busy timeout looks reliable because it eventually acquires the writer, but a background writer can then stall the foreground event loop. Fix: temporarily set PRAGMA busy_timeout=0, use nonblocking insertion, and restore the previous timeout in finally; checkpoint caching is optional foreground optimization.