mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-06 12:33:16 -05:00
GetChat of the SQL store opened a write transaction with a no-op update on every read, and the JSON store saved the record on every read, only to rewrite the legacy builtin:docx style markers to addon:docx. Rewrite the markers once when the store opens, in an idempotent step that changes a row only if it still holds the value it read. A read now normalizes the markers in memory and never writes. A failed rewrite is logged and does not stop the store. Assisted-by: Claude Code:claude-sonnet-5-5 Signed-off-by: Ettore Di Giacinto <mudler@localai.io>