| 593 | } |
| 594 | |
| 595 | void 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 | |
| 616 | void ClientInterface::handleToolExecutionStarted( |
| 617 | const QString &requestId, |
nothing calls this directly
no test coverage detected