Skip to content

Windows BrowserCode install from settings passes malformed temp path to bash #436

@ancientagent

Description

@ancientagent

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

  1. Open Browser Use Desktop on Windows.
  2. Go to settings.
  3. Use the BrowserCode install/setup action shown in the app.
  4. 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:

0.1.6

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions