From 1e5bf7413694efa2838214ea85daa0cd29d7904d Mon Sep 17 00:00:00 2001 From: KJ7LNW <93454819+KJ7LNW@users.noreply.github.com> Date: Mon, 26 May 2025 13:25:39 -0700 Subject: [PATCH] fix: Correct path resolution for .vite-port file in ClineProvider (#4007) The ClineProvider was looking for the .vite-port file in the wrong location. Updated the path resolution to correctly point to the project root where the Vite development server creates the file. Fixes: #4006 Signed-off-by: Eric Wheeler Co-authored-by: Eric Wheeler --- src/core/webview/ClineProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index be7908fda8..25db95ac2a 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -557,7 +557,7 @@ export class ClineProvider extends EventEmitter implements try { const fs = require("fs") const path = require("path") - const portFilePath = path.resolve(__dirname, "../.vite-port") + const portFilePath = path.resolve(__dirname, "../../.vite-port") if (fs.existsSync(portFilePath)) { localPort = fs.readFileSync(portFilePath, "utf8").trim()