Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(app): resolve Git Bash via launcher instead of 8.3 alias

Oii6111fe3c8df37468
diff --git a/app/package.json b/app/package.json
index 5264de2fac..a8b0af8864 100644
--- a/app/package.json
+++ b/app/package.json
@@ -10,7 +10,7 @@
"dev:web": "vite",
"dev:app": "bash ../scripts/run-dev-macos.sh",
"dev:app:web": "bash ../scripts/run-dev-web.sh",
- "dev:app:win": "C:/PROGRA~1/Git/bin/bash.exe ../scripts/run-dev-win.sh",
+ "dev:app:win": "..\\scripts\\run-dev-win.cmd",
"core:stage": "echo '[core:stage] no-op — core is linked in-process; sidecar removed (PR #1061)'",
"tauri:ios:init": "bash ../scripts/ios-init.sh",
"tauri:ios:dev": "cd src-tauri-mobile && IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:-16.0} npx --package=@tauri-apps/cli@^2 tauri ios dev",
diff --git a/scripts/run-dev-win.cmd b/scripts/run-dev-win.cmd
new file mode 100644
index 0000000000..6426edcc38
--- /dev/null
+++ b/scripts/run-dev-win.cmd
@@ -0,0 +1,25 @@
+@echo off
+setlocal
+
+rem Change to the repository root so Git Bash receives a stable relative path.
+cd /d "%~dp0.."
+
+set "GIT_BASH="
+if exist "%ProgramFiles%\Git\bin\bash.exe" set "GIT_BASH=%ProgramFiles%\Git\bin\bash.exe"
+if not defined GIT_BASH if exist "%ProgramFiles(x86)%\Git\bin\bash.exe" set "GIT_BASH=%ProgramFiles(x86)%\Git\bin\bash.exe"
+if not defined GIT_BASH if exist "%LOCALAPPDATA%\Programs\Git\bin\bash.exe" set "GIT_BASH=%LOCALAPPDATA%\Programs\Git\bin\bash.exe"
+
+if not defined GIT_BASH (
+ where bash >nul 2>nul
+ if not errorlevel 1 (
+ bash "scripts/run-dev-win.sh"
+ exit /b %errorlevel%
+ )
+
+ echo [run-dev-win] Git Bash not found.
+ echo [run-dev-win] Install Git for Windows or add bash.exe to PATH.
+ exit /b 1
+)
+
+"%GIT_BASH%" "scripts/run-dev-win.sh"
+exit /b %errorlevel%