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

Method handlePartialResponse

ChatView/ClientInterface.cpp:511–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511void ClientInterface::handlePartialResponse(const QString &requestId, const QString &partialText)
512{
513 auto it = m_activeRequests.find(requestId);
514 if (it == m_activeRequests.end())
515 return;
516
517 if (m_awaitingContinuation.remove(requestId)) {
518 m_accumulatedResponses[requestId].clear();
519 LOG_MESSAGE(
520 QString("Cleared accumulated responses for continuation request %1").arg(requestId));
521 }
522
523 m_accumulatedResponses[requestId] += partialText;
524
525 const RequestContext &ctx = it.value();
526 handleLLMResponse(m_accumulatedResponses[requestId], ctx.originalRequest);
527}
528
529void ClientInterface::handleFullResponse(const QString &requestId, const QString &fullText)
530{

Callers

nothing calls this directly

Calls 2

valueMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected