← Back to PRs

#16110: feat(browser): add browser.profiles.openclaw.userDataDir config

by chengcyber open 2026-02-14 08:41 View on GitHub →
size: S
### 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