Description
Installing BrowserCode from Browser Use Desktop settings fails on Windows before the BrowserCode installer can run.
The failure appears to be in the Desktop app install handoff: a Windows temp path is passed to /bin/bash in a form where the backslashes are stripped, so bash looks for a non-existent path.
Discord: voider
GitHub account submitting: ancientagent
Environment
- OS: Windows
- Browser Use Desktop version:
0.0.31 (C:\Users\baris\AppData\Local\browser_use_desktop\app-0.0.31)
- BrowserCode version installed by workaround:
0.1.6
- Shell available: Git Bash at
C:\Program Files\Git\bin\bash.exe
- Provider context: Codex was configured/being used in Browser Use Desktop
Steps to reproduce
- Open Browser Use Desktop on Windows.
- Go to settings.
- Use the BrowserCode install/setup action shown in the app.
- Observe the install failure in the app output/log area.
Actual behavior
The install flow fails with:
/bin/bash: C:usersbarisappdatalocaltempbcode-install.sh:no such file or directory
Expected behavior
The BrowserCode installer should run successfully from the Desktop settings flow.
The intended temp path was likely something like:
C:\Users\baris\AppData\Local\Temp\bcode-install.sh
But bash received:
C:usersbarisappdatalocaltempbcode-install.sh
That looks like the Windows path was passed to bash without conversion/escaping, so the backslashes were stripped or interpreted as escape characters.
Workaround that succeeded
Running the official BrowserCode installer directly through Git Bash worked:
& "C:\Program Files\Git\bin\bash.exe" -lc 'curl -fsSL https://bcode.sh/install | bash'
Result:
BrowserCode 0.1.6 installed to /c/Users/baris/.bcode/bin/bcode
Verified afterward:
& "C:\Users\baris\.bcode\bin\bcode.exe" --version
Output:
Suggested fix
When launching BrowserCode installation from Browser Use Desktop on Windows, either:
- pipe the installer directly into bash, e.g.
bash -lc "curl -fsSL https://bcode.sh/install | bash"
- convert the temp path to a bash-compatible path before passing it to bash, e.g.
/c/Users/baris/AppData/Local/Temp/bcode-install.sh
- or quote/escape the Windows path correctly for the selected shell.
This seems to belong in browser-use/desktop rather than browser-use/browsercode, because the BrowserCode installer works when launched directly through Git Bash.
Description
Installing BrowserCode from Browser Use Desktop settings fails on Windows before the BrowserCode installer can run.
The failure appears to be in the Desktop app install handoff: a Windows temp path is passed to
/bin/bashin a form where the backslashes are stripped, so bash looks for a non-existent path.Discord:
voiderGitHub account submitting:
ancientagentEnvironment
0.0.31(C:\Users\baris\AppData\Local\browser_use_desktop\app-0.0.31)0.1.6C:\Program Files\Git\bin\bash.exeSteps to reproduce
Actual behavior
The install flow fails with:
Expected behavior
The BrowserCode installer should run successfully from the Desktop settings flow.
The intended temp path was likely something like:
But bash received:
That looks like the Windows path was passed to bash without conversion/escaping, so the backslashes were stripped or interpreted as escape characters.
Workaround that succeeded
Running the official BrowserCode installer directly through Git Bash worked:
Result:
Verified afterward:
Output:
Suggested fix
When launching BrowserCode installation from Browser Use Desktop on Windows, either:
bash -lc "curl -fsSL https://bcode.sh/install | bash"/c/Users/baris/AppData/Local/Temp/bcode-install.shThis seems to belong in
browser-use/desktoprather thanbrowser-use/browsercode, because the BrowserCode installer works when launched directly through Git Bash.