#16110: feat(browser): add browser.profiles.openclaw.userDataDir config
size: S
Cluster:
Browser Enhancements and Fixes
### Summary
This PR aims to add a `browser.profiles.openclaw.userDataDir` config to customize dedicated profile data storage directory.
The usage would be
```json
{
"browser": {
"profiles": {
"openclaw": {
"userDataDir": "/path/to/user/data/dir"
}
}
}
```
### Test
All current test cases passed. And, this new config was tested in a local environment (Windows)
<!-- greptile_comment -->
<h3>Greptile Summary</h3>
Adds optional `userDataDir` configuration to browser profiles, allowing users to specify custom storage locations for profile data. The implementation correctly handles both default and custom paths across profile operations (launch, reset, delete). The regex validation requiring "openclaw" in the path provides safety against accidental data loss. Previous critical issues with `deleteProfile` trashing wrong directories have been resolved.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with no identified issues
- All previously flagged critical bugs have been fixed. The implementation correctly handles custom userDataDir across all operations (launch, reset, delete). The code includes proper validation (openclaw path requirement), tests for both default and custom paths, and consistent handling throughout the codebase. No new issues were identified during review.
- No files require special attention
<sub>Last reviewed commit: 4b87e3c</sub>
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#23189: feat(browser): add custom userDataDir support for Chrome profiles
by delta8z · 2026-02-22
83.2%
#14944: fix(browser): prefer openclaw profile in headless/noSandbox environ...
by BenediktSchackenberg · 2026-02-12
76.6%
#6193: fix(browser): default to openclaw profile instead of chrome extensi...
by mikezaoldyeck · 2026-02-01
76.0%
#15304: feat(browser): add browser-use no-relay profile driver
by rajanrengasamy · 2026-02-13
72.2%
#9020: fix(browser): skip port ownership and WS reachability checks for re...
by yepack · 2026-02-04
72.0%
#22952: fix(browser): suggest remote profile when local Chrome is not insta...
by dashed · 2026-02-21
71.8%
#7157: docs(browser): recommend openclaw managed profile as default
by AkashaBot · 2026-02-02
71.7%
#13568: Fix browser (OpenClaw-managed) launch fail by binding remote debugg...
by singlag · 2026-02-10
71.5%
#8282: Fix: Enable browser downloads via CDP Browser.setDownloadBehavior
by vishaltandale00 · 2026-02-03
70.6%
#9728: fix(gateway): browser.snapshot ignores profile parameter (#9723)
by divol89 · 2026-02-05
70.5%