fix(title): reconcile atomic auto-title writes with collision dedup retry

Combines the two salvaged fixes so they compose instead of conflict:
_persist_session_title (#50575) now writes through set_auto_title_if_empty
(#51483) when the store provides it — the collision-dedup retry and the
manual-/title race protection apply together. Predicate failure (a manual
title landed while generation was in flight) returns None: nothing written,
no callback. Legacy stores without the atomic method keep the plain
set_session_title path, including the vanished-session RuntimeError.

Tests cover both store shapes plus the race-skip path; E2E verified against
a real SQLite SessionDB (collision -> 'Weekly Report #2', manual title
preserved, cron dedup, blank guard). AUTHOR_MAP entry for rasitakyol.
This commit is contained in:
Teknium 2026-07-16 20:01:13 -07:00
parent 9bf5822a2f
commit 7facf63ae7
2 changed files with 38 additions and 5 deletions

View file

@ -368,6 +368,7 @@ AUTHOR_MAP = {
"157689911+itsflownium@users.noreply.github.com": "itsflownium",
"dirtyren@users.noreply.github.com": "dirtyren",
"s96919@gmail.com": "s96919",
"rasitakyol@hotmail.com": "rasitakyol",
"yakimenkoleksander228@gmail.com": "doxe0x",
"a54983334@163.com": "Code-suphub",
"78542984+Code-suphub@users.noreply.github.com": "Code-suphub",