@devries-cameron20 / t3code Mirror · read-only / commits / f2764f71b2
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 16:00 UTC

fix(desktop): desktop tests no longer race to install Electron (#26654)

Co-authored-by: Julius Marminge <julius0216@outlook.com>

Jérôme Poskin committed Nov 14, 2026 at 11:22 UTC f2764f71b2ae1e492267940c677f45b99a31d09c
2 files changed +7
apps/desktop/scripts/ensure-electron-runtime.mjs
+4
@@ -209,6 +209,10 @@ export function ensureElectronRuntime() {
209 return electronPath;
210 }
211
212 +export function setup() {
213 + ensureElectronRuntime();
214 +}
215 +
216 // `file://${argv[1]}` never matches on Windows (drive letters need `file:///C:/`).
217 if (process.argv[1] && NodeURL.pathToFileURL(process.argv[1]).href === import.meta.url) {
218 const electronPath = ensureElectronRuntime();
apps/desktop/vite.config.ts
+3
@@ -164,6 +164,9 @@ export default defineConfig({
164 // The Windows lane runs workspace suites concurrently; filesystem-heavy
165 // desktop integration tests can exceed Vitest's 5 second default there.
166 testTimeout: 15_000,
167 + // `require("electron")` downloads a missing binary, so concurrent workers race to
168 + // extract it into the same dist/. Install it once before any worker starts.
169 + globalSetup: ["./scripts/ensure-electron-runtime.mjs"],
170 projects: [
171 {
172 extends: true,