* @brief Loads the active chat's snapshot into the conversation, or clears it when empty. */
| 703 | * @brief Loads the active chat's snapshot into the conversation, or clears it when empty. |
| 704 | */ |
| 705 | void AI::Assistant::loadActiveSnapshot() |
| 706 | { |
| 707 | if (!m_conversation) |
| 708 | return; |
| 709 | |
| 710 | const auto snap = m_chats.loadChat(m_activeChatId); |
| 711 | if (snap.isEmpty()) |
| 712 | m_conversation->clear(); |
| 713 | else |
| 714 | m_conversation->loadSnapshot(snap); |
| 715 | } |
| 716 | |
| 717 | /** |
| 718 | * @brief Writes the conversation's current state back to the active chat file. |
nothing calls this directly
no test coverage detected