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

Method handleToolExecutionStarted

ChatView/ClientInterface.cpp:616–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616void 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
635void ClientInterface::handleToolExecutionCompleted(
636 const QString &requestId,

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected