From d82688da7f916342acf06391292c54fb268a69d8 Mon Sep 17 00:00:00 2001 From: hnbdr Date: Thu, 10 Sep 2026 14:53:07 +0300 Subject: [PATCH] fix(dev): use 127.0.0.1 instead of localhost for dev server to avoid IPv6 resolution issues --- src/core/webview/ClineProvider.ts | 4 ++-- webview-ui/vite.config.ts | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 87a899344c..1448991ea9 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -1532,7 +1532,7 @@ export class ClineProvider console.error("[ClineProvider:Vite] Failed to read Vite port file:", err) } - const localServerUrl = `localhost:${localPort}` + const localServerUrl = `127.0.0.1:${localPort}` // Check if local dev server is running. try { @@ -1571,7 +1571,7 @@ export class ClineProvider const reactRefresh = /*html*/ `