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

Method compressCurrentChat

ChatView/ChatRootView.cpp:1336–1353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1334}
1335
1336void ChatRootView::compressCurrentChat()
1337{
1338 if (m_chatCompressor->isCompressing()) {
1339 m_lastErrorMessage = tr("Compression is already in progress");
1340 emit lastErrorMessageChanged();
1341 return;
1342 }
1343
1344 if (m_recentFilePath.isEmpty()) {
1345 m_lastErrorMessage = tr("No chat file to compress. Please save the chat first.");
1346 emit lastErrorMessageChanged();
1347 return;
1348 }
1349
1350 autosave();
1351
1352 m_chatCompressor->startCompression(m_recentFilePath, m_chatModel);
1353}
1354
1355void ChatRootView::cancelCompression()
1356{

Callers

nothing calls this directly

Calls 3

startCompressionMethod · 0.80
isCompressingMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected