diff --git a/pkg/lmcli/store.go b/pkg/lmcli/store.go index 1fd815e..b21eacb 100644 --- a/pkg/lmcli/store.go +++ b/pkg/lmcli/store.go @@ -422,7 +422,7 @@ func (s *SQLStore) LatestConversationMessages() ([]api.Message, error) { Joins("JOIN (?) as sub on messages.conversation_id = sub.conversation_id AND messages.created_at = sub.max_created_at", subQuery). Group("messages.conversation_id"). Order("created_at DESC"). - Preload("Conversation"). + Preload("Conversation.SelectedRoot"). Find(&latestMessages).Error if err != nil {