From 3c23b8e62c085deec79ae3509fa886ef76396c83 Mon Sep 17 00:00:00 2001 From: klopez4212 Date: Sat, 4 Jul 2026 11:24:32 +0100 Subject: [PATCH] Stop Vite from watching test artifacts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A Playwright or build run in the same checkout wrote playwright-report/ test-results/dist, and the dev server's watcher force-reloaded any live app window on every write — killing in-flight Tauri IPC ("Couldn't find callback id") and making interactions appear to crash mid-flow. Co-Authored-By: Claude Fable 5 --- desktop/vite.config.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/desktop/vite.config.ts b/desktop/vite.config.ts index bea570482..c129a487d 100644 --- a/desktop/vite.config.ts +++ b/desktop/vite.config.ts @@ -47,7 +47,16 @@ export default defineConfig(async () => ({ : undefined, watch: { // 3. tell Vite to ignore watching `src-tauri` - ignored: ["**/src-tauri/**"], + ignored: [ + "**/src-tauri/**", + // Test artifacts: a Playwright/build run in the same checkout must + // not force-reload a live dev app window (in-flight Tauri IPC dies + // with "Couldn't find callback id" and interactions appear to + // crash mid-flow). + "**/playwright-report/**", + "**/test-results/**", + "**/dist/**", + ], }, }, }));