claude · GitHub

added 2 commits

March 31, 2026 03:29
Replace the default in-memory internal database with a temporary
file-backed database using WAL mode. This fixes concurrent read/write
locking errors that occur with named in-memory SQLite databases.
The new is_temp_disk parameter on Database creates a temp file via
tempfile.mkstemp, connects to it as a regular file-based database
with WAL mode enabled, and cleans it up on close() and via atexit.
https://claude.ai/code/session_01TteLrUjpDcARjnP1GMRqz2

@simonw simonw changed the title Add is_temp_disk option to Database for temp file-backed databases Database(is_temp_file=True) option, used for internal database

Mar 31, 2026

@simonw simonw changed the title Database(is_temp_file=True) option, used for internal database Database(is_temp_disk=True) option, used for internal database

Mar 31, 2026

@simonw

@simonw

simonw deleted the claude/temp-disk-database-nh3my branch

March 31, 2026 04:03

simonw added a commit that referenced this pull request

Apr 15, 2026

Read the original on github.com ↗