← Back to PRs

#6193: fix(browser): default to openclaw profile instead of chrome extension relay

by mikezaoldyeck open 2026-02-01 11:26 View on GitHub →
## Summary When no profile is specified, the browser tool was defaulting to the 'chrome' profile (extension relay) instead of the 'openclaw' managed browser profile. This caused an error for users who don't have the Chrome extension installed or configured. ## Root Cause The default profile preference order was checking for 'chrome' first, causing the extension relay error. ## Fix Changes the default profile preference to prefer 'openclaw' over 'chrome': 1. **src/browser/constants.ts**: Changed `DEFAULT_BROWSER_DEFAULT_PROFILE_NAME` from `"chrome"` to `"openclaw"` 2. **src/browser/config.ts**: Updated the profile preference order to check for 'openclaw' first ## Impact - Users without Chrome extension can now use the browser tool out of the box - The openclaw managed browser becomes the default for local automation <!-- greptile_comment --> <h2>Greptile Overview</h2> <h3>Greptile Summary</h3> This PR flips the browser tool’s default profile selection to prefer the managed `openclaw` profile over the Chrome extension relay profile when no explicit profile is configured. It updates the selection logic in `src/browser/config.ts` and changes the constant default profile name in `src/browser/constants.ts`, aiming to avoid failures for users without the Chrome extension configured. <h3>Confidence Score: 4/5</h3> - This PR is likely safe to merge and should improve default behavior, with a small risk of unintended semantics where the renamed default constant is used elsewhere. - Changes are small and localized, but `DEFAULT_BROWSER_DEFAULT_PROFILE_NAME` now equals the openclaw profile name, which may not match its historical meaning and could affect other code paths that use this constant as the implicit default. - src/browser/constants.ts (constant semantics), and any other callers of DEFAULT_BROWSER_DEFAULT_PROFILE_NAME such as src/browser/profiles-service.ts <!-- greptile_other_comments_section --> <sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub> **Context used:** - Context from `dashboard` - CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8)) - Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=0d0c8278-ef8e-4d6c-ab21-f5527e322f13)) <!-- /greptile_comment -->

Most Similar PRs