Files
Matt Toohey f4971a8330 fix: address code review issues in legacy session backfill SQL
- Remove redundant EXISTS subquery in thread_messages INSERT since the
  JOIN already limits results to sessions that have messages
- Remove ineffective ORDER BY in INSERT...SELECT (SQLite does not
  guarantee insertion order from ORDER BY in this context)
- Fix user_set_name to be FALSE when name falls back to 'New Chat',
  avoiding contradictory state where user_set_name=true but the name
  is a default placeholder

Signed-off-by: Matt Toohey <contact@matttoohey.com>
2026-05-07 17:27:23 +10:00
..