| 409 | } |
| 410 | |
| 411 | void ClientInterface::clearMessages() |
| 412 | { |
| 413 | const auto providerName = Settings::generalSettings().caProvider(); |
| 414 | auto *provider = PluginLLMCore::ProvidersManager::instance().getProviderByName(providerName); |
| 415 | |
| 416 | if (provider && !m_chatFilePath.isEmpty() |
| 417 | && provider->capabilities().testFlag(PluginLLMCore::ProviderCapability::Tools) |
| 418 | && provider->toolsManager()) { |
| 419 | if (auto *todoTool = qobject_cast<QodeAssist::Tools::TodoTool *>( |
| 420 | provider->toolsManager()->tool("todo_tool"))) { |
| 421 | todoTool->clearSession(m_chatFilePath); |
| 422 | } |
| 423 | } |
| 424 | |
| 425 | m_chatModel->clear(); |
| 426 | } |
| 427 | |
| 428 | void ClientInterface::cancelRequest() |
| 429 | { |
nothing calls this directly
no test coverage detected