Skip to content

feat: Add BROWSER_PATH configuration for custom browser support#5

Open
MannJadwani wants to merge 1 commit intoComposioHQ:masterfrom
MannJadwani:master
Open

feat: Add BROWSER_PATH configuration for custom browser support#5
MannJadwani wants to merge 1 commit intoComposioHQ:masterfrom
MannJadwani:master

Conversation

@MannJadwani
Copy link
Copy Markdown

Summary

This PR adds support for configuring a custom browser executable path for Opencode's browser automation features. This resolves issue #4 where users with unsupported default browsers (like Brave) could not use the application.

Changes

  • Added BROWSER_PATH environment variable to .env.example with examples for macOS, Linux, and Windows
  • Updated OpencodeProvider to accept browserPath configuration parameter
  • Modified provider initialization to pass browser path to createOpencode function when configured
  • Added comprehensive documentation in README with:
    • Environment variable setup instructions
    • Common browser paths for different platforms
    • Troubleshooting section for browser configuration issues

Testing

  • Tested configuration passing through provider initialization
  • Verified environment variable is correctly read from process.env
  • Checked that browser option is only added when BROWSER_PATH is set

Impact

  • Allows users to specify a supported browser (Chromium, Firefox, WebKit) instead of relying on system default
  • Fixes compatibility issues for users with Brave or other unsupported browsers as default
  • Backwards compatible - empty BROWSER_PATH uses system default behavior

Fixes #4

- Add BROWSER_PATH environment variable to .env.example
- Update OpencodeProvider to accept and use custom browser path
- Pass browser configuration to createOpencode function
- Add documentation in README with common browser paths
- Add troubleshooting section for browser configuration

Fixes ComposioHQ#4
@Prat011
Copy link
Copy Markdown
Collaborator

Prat011 commented Jan 23, 2026

this doesnt seem to be working for me, and opencode doesn't seem to come with native browser tool support, can you share a video of this working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add configuration for which browser to open

2 participants