From af5fc4ff5eeff75e3f6aca8f3f3ccd2237731b29 Mon Sep 17 00:00:00 2001 From: nesquena-hermes Date: Thu, 18 Jun 2026 22:58:30 +0000 Subject: [PATCH] docs: note title-only UPDATE fallback gap in fingerprint comment (Opus/Codex follow-up) --- api/models.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/models.py b/api/models.py index ebc69646..18195bde 100644 --- a/api/models.py +++ b/api/models.py @@ -3828,7 +3828,11 @@ def _sqlite_content_fingerprint(db_path: Path): # pure DELETE-without-insert, but the file-stat fallback in # _sqlite_file_stat_cache_key still moves on a delete commit, # and a delete never makes a MISSING row appear (the flake we - # fix is an ADDED row not showing up). + # fix is an ADDED row not showing up). It also misses a plain + # `UPDATE sessions SET title/message_count` with no message + # insert (state_sync.py sync) — those fall back to the stat + # stamp + 5s TTL, i.e. the prior behavior (a title-only rename + # can lag <=5s); no regression vs the old stat-only key. row = conn.execute( f"SELECT MAX(rowid) FROM {table}" ).fetchone()