refactor(state): table-driven _rows_to_conversation column copy; unify tool-call counting; collapse defensive locals

This commit is contained in:
Teknium
2026-09-02 16:59:58 -07:00
parent f54075e0bb
commit 8656cc31f2
4 changed files with 82 additions and 139 deletions

View File

@@ -175,8 +175,7 @@ class SessionTitlesMixin:
row = self._read_one(
"SELECT s.*, COALESCE(sp.prompt, s.system_prompt) AS _system_prompt_resolved "
"FROM sessions s LEFT JOIN system_prompts sp ON sp.hash = s.system_prompt_hash "
"WHERE s.title = ?",
(title,),
"WHERE s.title = ?", (title,),
)
return self._session_row_dict(row) if row else None