MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / persistActiveChat

Method persistActiveChat

app/src/AI/Assistant.cpp:720–730  ·  view source on GitHub ↗

* @brief Writes the conversation's current state back to the active chat file. */

Source from the content-addressed store, hash-verified

718 * @brief Writes the conversation's current state back to the active chat file.
719 */
720void AI::Assistant::persistActiveChat()
721{
722 if (!m_conversation || m_activeChatId.isEmpty())
723 return;
724
725 m_chats.saveChat(m_activeChatId,
726 m_conversation->snapshot(),
727 m_conversation->firstUserText().left(kTitleLimit),
728 m_conversation->messageCount());
729 Q_EMIT chatListChanged();
730}
731
732/**
733 * @brief Loads each provider's previously-selected model from QSettings.

Callers

nothing calls this directly

Calls 5

isEmptyMethod · 0.80
saveChatMethod · 0.80
firstUserTextMethod · 0.80
snapshotMethod · 0.45
messageCountMethod · 0.45

Tested by

no test coverage detected