Dashboardopencode-loreSourceWindowStore busy_timeout

SourceWindowStore busy_timeout

Category: gotcha
Confidence: 1.00
ID: 01a0a45d-362e-7df3-abbc-f8566cdc09f5
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 0
Source session: 1JmtIdaVnn5PTPdxS
Created: 2026-09-15 09:19:27
Updated: 2026-09-15 09:19:27

Content

Trap: 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.

Move to: