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

Method handleThinkingBlockReceived

ChatView/ClientInterface.cpp:595–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593}
594
595void ClientInterface::handleThinkingBlockReceived(
596 const QString &requestId, const QString &thinking, const QString &signature)
597{
598 if (!m_activeRequests.contains(requestId)) {
599 LOG_MESSAGE(QString("Ignoring thinking block for non-chat request: %1").arg(requestId));
600 return;
601 }
602
603 if (m_awaitingContinuation.remove(requestId)) {
604 m_accumulatedResponses[requestId].clear();
605 LOG_MESSAGE(
606 QString("Cleared accumulated responses for continuation request %1").arg(requestId));
607 }
608
609 if (thinking.isEmpty()) {
610 m_chatModel->addRedactedThinkingBlock(requestId, signature);
611 } else {
612 m_chatModel->addThinkingBlock(requestId, thinking, signature);
613 }
614}
615
616void ClientInterface::handleToolExecutionStarted(
617 const QString &requestId,

Callers

nothing calls this directly

Calls 4

addThinkingBlockMethod · 0.80
clearMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected