MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / handOffSession

Method handOffSession

ChatView/ChatRootView.cpp:911–929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

909}
910
911void ChatRootView::handOffSession()
912{
913 if (m_chatModel->rowCount() > 0) {
914 if (m_recentFilePath.isEmpty()) {
915 QString filePath = getAutosaveFilePath();
916 if (auto registry = sessionFileRegistry())
917 filePath = registry->uniqueFreePath(filePath);
918 if (!filePath.isEmpty())
919 setRecentFilePath(filePath);
920 }
921 if (!m_recentFilePath.isEmpty())
922 m_historyStore->save(m_recentFilePath);
923 }
924
925 if (auto registry = sessionFileRegistry(); registry && !m_recentFilePath.isEmpty())
926 registry->setPendingChatFile(m_recentFilePath);
927
928 setRecentFilePath(QString{});
929}
930
931void ChatRootView::consumePendingChatFile()
932{

Callers

nothing calls this directly

Calls 5

uniqueFreePathMethod · 0.80
setPendingChatFileMethod · 0.80
rowCountMethod · 0.45
isEmptyMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected