1min.

1MIN · PYTHON

LLM fixes a logging crash exposed by corrected SQLite JSON behavior

LLM 0.37.3 fixes a conversation-log crash on SQLite 3.54.1 and later when older tool results include attachments. SQLite corrected how JSON values passing through a subquery are represented, exposing an assumption in LLM’s logging code. A nested array could become quoted JSON text rather than the array the application expected, requiring explicit JSON interpretation.

Simon Willison · Nov 16, 2026

Why it matters

A database bug fix can reveal application code that depended on the old behavior, even without a schema change.

More context

Upgrade the LLM installation through its package manager and inspect an affected older log. The author explains the SQL difference and an explicit json() wrapper. The triggering records were written before LLM 0.32; Homebrew’s newer SQLite made the problem visible to users.

Keep in mind

Released compatibility fix, not evidence that every log or SQLite JSON query is broken. The release also fixes async and streamed tool handling, but this card focuses on the documented logging failure. It does not claim stored conversation data was lost.

Original read

More engineering ideas, one minute at a time.

Explore more stories