| 614 | } |
| 615 | |
| 616 | void ClientInterface::handleToolExecutionStarted( |
| 617 | const QString &requestId, |
| 618 | const QString &toolId, |
| 619 | const QString &toolName, |
| 620 | const QJsonObject &arguments) |
| 621 | { |
| 622 | const auto requestIt = m_activeRequests.constFind(requestId); |
| 623 | if (requestIt == m_activeRequests.constEnd()) { |
| 624 | LOG_MESSAGE(QString("Ignoring tool execution start for non-chat request: %1").arg(requestId)); |
| 625 | return; |
| 626 | } |
| 627 | |
| 628 | if (requestIt->dropPreToolText) { |
| 629 | m_chatModel->dropTrailingAssistantMessage(requestId); |
| 630 | } |
| 631 | m_chatModel->addToolExecutionStatus(requestId, toolId, toolName, arguments); |
| 632 | m_awaitingContinuation.insert(requestId); |
| 633 | } |
| 634 | |
| 635 | void ClientInterface::handleToolExecutionCompleted( |
| 636 | const QString &requestId, |
nothing calls this directly
no test coverage detected