diff --git a/src/core/tools/WebSearchTool.ts b/src/core/tools/WebSearchTool.ts index d8bd67c546..dd7c2a4c1f 100644 --- a/src/core/tools/WebSearchTool.ts +++ b/src/core/tools/WebSearchTool.ts @@ -58,12 +58,18 @@ export class WebSearchTool extends BaseTool<"web_search"> { const { CloudService } = await import("@roo-code/cloud") if (!CloudService.hasInstance()) { + task.consecutiveMistakeCount++ + task.recordToolError("web_search") + task.didToolFailInCurrentTurn = true pushToolResult(formatResponse.toolError("Cloud service not available")) return } const cloudAPI = CloudService.instance.cloudAPI if (!cloudAPI) { + task.consecutiveMistakeCount++ + task.recordToolError("web_search") + task.didToolFailInCurrentTurn = true pushToolResult(formatResponse.toolError("Cloud API not available")) return }