Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Record managed profile dir runtime parity

Magnus Müller184bf4b75991
diff --git a/RUST_AGENT_INTEGRATION_FEATURES.md b/RUST_AGENT_INTEGRATION_FEATURES.md
index 1f67aa5fa..1dc45d4aa 100644
--- a/RUST_AGENT_INTEGRATION_FEATURES.md
+++ b/RUST_AGENT_INTEGRATION_FEATURES.md
@@ -1111,11 +1111,16 @@ Terminal core branch: `magnus/browser-use-rust-main-integration` at terminal mai
- Terminal managed Chrome startup now appends JSON `BU_MANAGED_BROWSER_ARGS`, making wrapper-exported BrowserProfile launch flags like proxy and user-agent live at runtime.
- Proof: terminal `test_managed_browser_profile_env_controls_worker_launch`.
+220. Rust Agent managed BrowserProfile user-data-dir runtime parity
+ - Terminal managed Chrome startup now honors wrapper-exported `BU_MANAGED_BROWSER_PROFILE` as the browser user data directory.
+ - Configured profile directories are preserved during cleanup, while worker-created temporary profiles are still removed.
+ - Proof: terminal `test_managed_browser_profile_env_uses_configured_user_data_dir`.
+
## Current Verification
- `python3 -m py_compile browser_use/agent/service.py browser_use/rust/service.py browser_use/rust/__init__.py browser_use/__init__.py tests/ci/test_rust_agent.py examples/rust_agent/basic.py examples/rust_agent/real_v8_smoke.py`
- `uv run pytest -q tests/ci/test_rust_agent.py` (186 tests)
-- `uv run --with pytest pytest -q python/tests/test_worker_package.py` on terminal branch `magnus/browser-use-rust-main-integration` (20 tests)
+- `uv run --with pytest pytest -q python/tests/test_worker_package.py` on terminal branch `magnus/browser-use-rust-main-integration` (21 tests)
- `cargo build -q -p browser-use-cli` on terminal branch `magnus/browser-use-rust-main-integration`
- `cargo test -q -p browser-use-cli run_codex_session_command_accepts_task_id_and_model -- --nocapture`
- `CARGO_INCREMENTAL=0 cargo test -q -p browser-use-agent selected_remote_cdp_mode_allows_remote_cdp_connect -- --nocapture`