From 81052d9b4252063dd359ecf0f3e25183058987dd Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Thu, 13 Nov 2025 22:03:00 +0100 Subject: [PATCH] Improve Git Bash not found error message - List the specific paths that are checked - Make it clear that default installation path should be used --- packages/coding-agent/src/tools/bash.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/coding-agent/src/tools/bash.ts b/packages/coding-agent/src/tools/bash.ts index bc7bcee0..b1ffd9bb 100644 --- a/packages/coding-agent/src/tools/bash.ts +++ b/packages/coding-agent/src/tools/bash.ts @@ -41,8 +41,10 @@ function getShellConfig(): { shell: string; args: string[] } { if (process.platform === "win32") { const gitBash = findGitBash(); if (!gitBash) { + const paths = ["C:\\Program Files\\Git\\bin\\bash.exe", "C:\\Program Files (x86)\\Git\\bin\\bash.exe"]; + const pathList = paths.map((p) => ` - ${p}`).join("\n"); throw new Error( - "Git Bash not found. Please install Git for Windows from https://git-scm.com/download/win and ensure it's installed with Git Bash support.", + `Git Bash not found in standard installation locations:\n${pathList}\n\nPlease install Git for Windows from https://git-scm.com/download/win using the default installation path.`, ); } return { shell: gitBash, args: ["-c"] };