Repository navigation
feat(runtime): support explicit Git Bash selection on Windows - #2684
Merged
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
auto/git_bashshell preference while keeping the existing PowerShell-first Windows detection unchanged by defaultbash.exeon the Runtime Host before persisting it, then use the resolvedShellPlanfor Bash tools, child agents, background and PTY execution, the integrated terminal, and model-facing shell guidanceSystem32\bash.exeWSL shim uses stdin for non-PTY commandsThe executable path is intentionally resolved on the Runtime Host, not the Desktop Client. This keeps remote Desktop connections honest and makes an invalid or later-missing explicit path fail closed instead of silently returning to PowerShell.
Fixes #2195
Desktop
Verification
npm run build:testnpm run test:dist:serial— all workspace tests passednpm run typechecknpx biome check .git diff --checkProduct/Settings/Pages/General Git Bashin Storybook at 1440×1000Checklist
Does this PR entail a change in behavior?
中文对照
概要
auto/git_bashshell 偏好;默认仍保持现有的 Windows PowerShell 优先检测bash.exe,并将解析出的同一个ShellPlan用于 Bash 工具、子 Agent、后台与 PTY 执行、集成终端以及面向模型的 shell 方言说明System32\bash.exeWSL shim 的非 PTY 命令通过 stdin 输入可执行文件路径刻意在 Runtime Host 而不是 Desktop Client 上解析。这样远程 Desktop 连接不会误用客户端机器的路径;显式路径无效或之后消失时也会失败关闭,而不会静默回退到 PowerShell。
AI use
Tool(s) and scope: OpenAI Codex (Maka) assisted with the original implementation, tests, and review remediation. OpenAI Codex handled the current-main rebase, compatibility-epoch conflict resolution, and final local verification.
Final squash trailers: