From 44392b4f3c9f68458285ca67d9fb19a9917ffef8 Mon Sep 17 00:00:00 2001 From: Will Li Date: Fri, 15 Aug 2025 08:00:44 -0700 Subject: [PATCH] undo linter change --- src/core/tools/codebaseSearchTool.ts | 2 +- src/core/webview/ClineProvider.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/tools/codebaseSearchTool.ts b/src/core/tools/codebaseSearchTool.ts index 263fa8755e..700d1b7c7c 100644 --- a/src/core/tools/codebaseSearchTool.ts +++ b/src/core/tools/codebaseSearchTool.ts @@ -17,7 +17,7 @@ export async function codebaseSearchTool( removeClosingTag: RemoveClosingTag, ) { const toolName = "codebase_search" - const workspacePath = cline.cwd && cline.cwd.trim() !== "" ? cline.cwd : getWorkspacePath() + const workspacePath = (cline.cwd && cline.cwd.trim() !== '') ? cline.cwd : getWorkspacePath() if (!workspacePath) { // This case should ideally not happen if Cline is initialized correctly diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index e8bf23d995..6693d570d6 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -753,8 +753,7 @@ export class ClineProvider throw new OrganizationAllowListViolationError(t("common:errors.violated_organization_allowlist")) } - // Bridge: If a modeSlug is provided by the cloud extension bridge, honor it before creating the task - // This ensures the task initializes with the correct mode and associated provider profile + // Initializes task with the correct mode and associated provider profile try { const modeSlugFromBridge: string | undefined = (options as any)?.modeSlug if (typeof modeSlugFromBridge === "string" && modeSlugFromBridge.trim().length > 0) {