Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
827 commits
Select commit Hold shift + click to select a range
f04211b
Add run-entrypoint facade calling build_sampling_driver
gregpr07 May 31, 2026
886b1ac
Merge branch 'cutover-w3-entrypoint' into decodex-cutover
gregpr07 May 31, 2026
3d8f82d
Preserve streamed text across queued follow-up continuation
Cheggin May 31, 2026
d383c20
Show pasted image chips after fast validation
Cheggin May 31, 2026
0e4f42d
Port config-layer model resolution to agent crate
gregpr07 May 31, 2026
e370bb2
Wire fused tool dispatch into the run-entrypoint
gregpr07 May 31, 2026
af66b29
Port typed user-input payload builders + review-session helper
gregpr07 May 31, 2026
7314bba
Merge branch 'cutover-e-config' into decodex-cutover
gregpr07 May 31, 2026
16da877
Merge branch 'cutover-e-fusion' into decodex-cutover
gregpr07 May 31, 2026
861c34c
Merge branch 'cutover-e-protocol' into decodex-cutover
gregpr07 May 31, 2026
ef76757
Surface start_review_session in infra flat re-exports
gregpr07 May 31, 2026
42731cd
Port Store-based agent-tree + status helpers (Phase-E gap-fill)
gregpr07 May 31, 2026
8503e5d
Merge branch 'cutover-e-subagents2' into decodex-cutover
gregpr07 May 31, 2026
7bc322c
Phase-F: repoint browser-use-cli onto browser-use-agent engine
gregpr07 May 31, 2026
95f0e59
Merge branch 'cutover-f-cli' into decodex-cutover
gregpr07 May 31, 2026
ab32ac9
Repoint browser-use-tui onto browser-use-agent
gregpr07 May 31, 2026
79653b5
Merge branch 'cutover-f-tui' into decodex-cutover
gregpr07 May 31, 2026
48b63e6
Phase H: delete browser-use-core (legacy engine retired)
gregpr07 May 31, 2026
0f86883
docs: cutover HANDOFF + Phase-F map (honest seams documented)
gregpr07 May 31, 2026
b93f608
Merge branch 'decodex-cutover' into decodex
gregpr07 May 31, 2026
be682af
Wire browser + python tool handlers into the engine dispatcher
gregpr07 May 31, 2026
a7648c1
Merge branch 'parity-tools' into decodex
gregpr07 May 31, 2026
a24b675
docs: HANDOFF — browser+python tools wired; cutover complete
gregpr07 May 31, 2026
40472b0
Fix empty-request bug in production model sampling path
gregpr07 May 31, 2026
ba81bf0
Re-enable codex (chatgpt.com) backend and add store-fallback creds
gregpr07 May 31, 2026
fdb313a
Wire codex-parity model-based compaction into the session entrypoint
gregpr07 May 31, 2026
b35645e
Enable local cookie sync for Browser Use cloud
Cheggin May 31, 2026
1f5e947
Fix Store::open_at typo in codex/creds tests (open_at -> open(dir))
gregpr07 May 31, 2026
0bb18dc
Merge pull request #23 from browser-use/confusion-gecko
Cheggin May 31, 2026
db3a27c
Wire registered tool specs into the model request
gregpr07 May 31, 2026
510d543
Remove root HTML parsing diagrams
Cheggin May 31, 2026
9a33f44
Fix env-var test isolation in codex creds precedence tests
gregpr07 May 31, 2026
318f62b
Merge branch 'k-modelreq' into decodex
gregpr07 May 31, 2026
1dc727a
Merge branch 'k-codex-auth' into decodex
gregpr07 May 31, 2026
8254665
Merge branch 'k-compaction' into decodex
gregpr07 May 31, 2026
4ee4c86
Fix merge arity break: thread None store into compaction sampler
gregpr07 May 31, 2026
d4f638d
Fix tool-correctness bugs + complete the production tool catalog
gregpr07 May 31, 2026
db135c5
Merge branch 'p-catalog' into decodex
gregpr07 May 31, 2026
d7e162b
Restore origin/main's TUI renderer on the browser-use-agent engine
gregpr07 May 31, 2026
5e0948f
Merge branch 'p-tui' into decodex
gregpr07 May 31, 2026
1bbbc1c
Wire MCP registration, real request_user_input responder, done-terminal
gregpr07 May 31, 2026
127071a
Guard codex env-mutating tests with ENV_LOCK to fix parallel-run flake
gregpr07 May 31, 2026
25c4d33
Engine: base64 input_image content expansion; un-ignore image TUI test
gregpr07 May 31, 2026
5b8952e
Thread mcp_servers into CLI/TUI AgentRunOptions literals
gregpr07 May 31, 2026
6427e33
Merge branch 'w-mcphooks' into decodex
gregpr07 May 31, 2026
1180645
Merge branch 'w-engcfg' into decodex
gregpr07 May 31, 2026
96d2757
TUI: load config.toml model_catalog_json pointer for model picker; un…
gregpr07 May 31, 2026
0ef44a5
Merge branch 'w-catalog' into decodex
gregpr07 May 31, 2026
698f36f
python: richer event/artifact mapping (files/images/tracebacks/struct…
gregpr07 May 31, 2026
f2f9aab
Merge branch 'w-pyrich' into decodex
gregpr07 May 31, 2026
ffedcd1
engine: restore rich workspace-context (plan_mode/permissions) + cwd …
gregpr07 May 31, 2026
57936d5
Merge branch 'w-richctx' into decodex
gregpr07 May 31, 2026
a1e7e0a
subagents: register spawn_agent/wait_agent/send_input/list_agents too…
gregpr07 May 31, 2026
12b286d
Merge branch 'w-subagents' into decodex
gregpr07 May 31, 2026
e616359
goals: register goal get/create/update tools + durable events + reduc…
gregpr07 May 31, 2026
991a0b3
Merge branch 'w-goals' into decodex
gregpr07 May 31, 2026
ea3e870
tools: wire live approval policy + guardian approver into tool dispat…
gregpr07 May 31, 2026
ce6bbce
Merge branch 'w-approval' into decodex
gregpr07 May 31, 2026
36c564e
test(compact): prove auto-compaction fires at the production 80% thre…
gregpr07 May 31, 2026
6148836
Merge branch 'w-compaction' into decodex
gregpr07 May 31, 2026
58fb7df
feat: align Decodex core runtime
gregpr07 Jun 1, 2026
7d9f1b2
fix: run TUI agent on multi-thread runtime
gregpr07 Jun 1, 2026
49b1422
Fix structured image loading through agent runtime
gregpr07 Jun 1, 2026
e620958
Merge origin/main into decodex-main-merge
gregpr07 Jun 1, 2026
1f06c8b
Route tool artifacts to session artifact root
gregpr07 Jun 1, 2026
94daa9f
Fix reload resume notice in running TUI
gregpr07 Jun 1, 2026
d763dd4
Merge branch 'decodex-main-merge' into decodex
gregpr07 Jun 1, 2026
9b0d292
Add unified exec runtime and cancellation wiring
gregpr07 Jun 1, 2026
1736a3f
Bring browser interaction heuristics to decodex
gregpr07 Jun 1, 2026
e9ead69
Implement Codex-style compaction parity
gregpr07 Jun 1, 2026
53fa25d
Merge branch 'decodex-compaction-integration' into decodex
gregpr07 Jun 1, 2026
6b57d98
Make exec_command parallel-safe
gregpr07 Jun 1, 2026
580034f
Align browser mode orchestration with main
gregpr07 Jun 1, 2026
7a4cd70
Implement Codex subagent parity
gregpr07 Jun 1, 2026
aa940ed
Default lowered image detail to auto
gregpr07 Jun 1, 2026
53f251f
Merge decodex subagent parity
gregpr07 Jun 1, 2026
a68d5e2
Merge branch 'decodex-browser-parity-fix' into decodex
gregpr07 Jun 1, 2026
7c9d931
nice light mode
laithrw Jun 1, 2026
5e94960
browser alias in interactive rc
laithrw Jun 1, 2026
c64bcff
Merge pull request #21 from browser-use/decodex
gregpr07 Jun 1, 2026
ec14ca0
Implement goal runtime parity
gregpr07 Jun 1, 2026
a03cbe8
Merge pull request #25 from browser-use/browser-alias
laithrw Jun 1, 2026
7a9630d
Merge remote-tracking branch 'origin/main' into light-mode
laithrw Jun 1, 2026
8ca3514
Merge pull request #24 from browser-use/light-mode
laithrw Jun 1, 2026
e373ece
Merge pull request #29 from browser-use/decodex-goal-parity-main
exe-dev-github-integration[bot] Jun 1, 2026
254f08e
Much better subagent system
gregpr07 Jun 2, 2026
ff4384e
Merge pull request #30 from browser-use/subagents-codex-runtime-parity
exe-dev-github-integration[bot] Jun 2, 2026
21babe6
add light terminal theme with auto-detect
laithrw Jun 1, 2026
183de78
Ensure managed agent tools are on PATH
gregpr07 Jun 2, 2026
440936f
Fix dataset cloud cleanup stalls
gregpr07 Jun 2, 2026
ae565fc
Merge pull request #32 from browser-use/fix-dataset-cloud-cleanup-stall
exe-dev-github-integration[bot] Jun 2, 2026
9c7cad3
Merge pull request #33 from browser-use/recover-decodex-post-merge
gregpr07 Jun 2, 2026
f640864
fix sessions hanging by dropping store.lock() before tool construction
Cheggin Jun 2, 2026
25efa10
Enable subagents by default
gregpr07 Jun 2, 2026
7e247c0
Remove request_user_input flow
gregpr07 Jun 2, 2026
2b12a69
toggle off plan when pressed in modal
laithrw Jun 2, 2026
2e87c52
Merge pull request #35 from browser-use/plan-fix
laithrw Jun 2, 2026
ec6c180
nice flow to accept chrome debugging perms + switch browsers mid-sesh
laithrw Jun 2, 2026
0e00657
copy
laithrw Jun 2, 2026
c3c597e
fix mid-sesh chrome perm flow edge cases
laithrw Jun 2, 2026
969ad71
Merge pull request #36 from browser-use/chrome-permissions
laithrw Jun 2, 2026
51a3a47
fix queued follow-up after stopping task
laithrw Jun 2, 2026
9b140ab
Merge pull request #39 from browser-use/fix/autosubmit-queued-after-t…
laithrw Jun 2, 2026
e72cc48
Make apply_patch and view_image path resolution permissive
gregpr07 Jun 2, 2026
1c33531
Merge pull request #40 from browser-use/permissive-file-tool-paths
gregpr07 Jun 2, 2026
77e12c3
Remove Plan collaboration-mode prompt asset
Cheggin Jun 2, 2026
d8b8547
Normalize deprecated Plan mode to Default in agent + CLI
Cheggin Jun 2, 2026
590222b
Remove plan mode UI, modal, and /plan command from TUI
Cheggin Jun 2, 2026
0a12744
Revert "Chrome permissions"
laithrw Jun 3, 2026
6d19616
Merge pull request #43 from browser-use/revert-36-chrome-permissions
laithrw Jun 3, 2026
c3c81e7
allow legacy plans
Cheggin Jun 3, 2026
4e9e063
Merge remote-tracking branch 'origin/main' into reagan/eng-4945-remov…
Cheggin Jun 3, 2026
5c4d961
Merge pull request #41 from browser-use/reagan/eng-4945-remove-planni…
Cheggin Jun 3, 2026
704267d
perf(tui): cache transcript model, snapshot modal background, increme…
Cheggin Jun 3, 2026
0584c13
perf(tui): stop reading full event history on every keystroke
Cheggin Jun 3, 2026
ba96499
let LLM drive chrome perm flow via shell tool
laithrw Jun 3, 2026
14e1bcb
Merge pull request #44 from browser-use/reagan/eng-4919-fix-upward-sc…
Cheggin Jun 3, 2026
e9ad552
align tool rules: shell for chrome perm bootstrap, no browser_script
laithrw Jun 3, 2026
f82ef73
Merge pull request #45 from browser-use/llm-driven-chrome-perm
laithrw Jun 3, 2026
f036761
fix(tui): replay full transcript on session re-attach
Cheggin Jun 3, 2026
b4390bf
Merge origin/main into subagents WIP
gregpr07 Jun 3, 2026
086de6c
Align subagent spawning with Codex behavior
gregpr07 Jun 3, 2026
d6623ce
Fix durable subagent completion mail
gregpr07 Jun 3, 2026
090e229
Keep CLI child completion mail durable
gregpr07 Jun 3, 2026
454e037
Harden subagent mailbox wakeups
gregpr07 Jun 3, 2026
19757a1
Add live runtime foundation
gregpr07 Jun 3, 2026
9a10dbc
Wire agent execution through live runtime
gregpr07 Jun 3, 2026
2c33de4
Route CLI TUI and SDK through runtime
gregpr07 Jun 3, 2026
a6e6637
Introduce runtime-owned agent run boundary
gregpr07 Jun 3, 2026
42e025a
Make turn state runtime mailbox aware
gregpr07 Jun 3, 2026
cc7999d
Keep runtime exec resources out of global fallback
gregpr07 Jun 3, 2026
69f645c
Route browser backend through runtime leases
gregpr07 Jun 3, 2026
2e6d91d
Show runtime mailbox work in TUI transcript
gregpr07 Jun 3, 2026
b39de92
Demote store-backed live wait paths
gregpr07 Jun 3, 2026
4e4caf4
Harden runtime mailbox barrier ordering
gregpr07 Jun 3, 2026
59be673
Route SDK events by session id
gregpr07 Jun 3, 2026
647e0e0
Demote store mailbox from live turn state
gregpr07 Jun 3, 2026
ddfef5a
Add runtime submit input API
gregpr07 Jun 3, 2026
ea1b0ad
Route TUI followups through runtime submit input
gregpr07 Jun 4, 2026
6a305b5
Require live runtime for CLI agent messages
gregpr07 Jun 4, 2026
8ccf360
Require runtime mailbox for subagent send tools
gregpr07 Jun 4, 2026
b224e9a
Gate TUI mailbox continuations on trigger-turn mail
gregpr07 Jun 4, 2026
2ceaf81
Update store mailbox invariants in agent tests
gregpr07 Jun 4, 2026
9fe414f
Add runtime live state projection primitives
gregpr07 Jun 4, 2026
25d99b2
Demote live executor API to runtime agent runner
gregpr07 Jun 4, 2026
9f965b5
Route SDK followups through runtime mailbox
gregpr07 Jun 4, 2026
8a4aa64
Use runtime snapshots for TUI child liveness
gregpr07 Jun 4, 2026
d893106
Journal runtime browser leases
gregpr07 Jun 4, 2026
ff138c0
Harden runtime run status barriers
gregpr07 Jun 4, 2026
29f0965
Harden runtime cancel and close barriers
gregpr07 Jun 4, 2026
e9ddebe
Introduce runtime turn driver boundary
gregpr07 Jun 4, 2026
cc4f5a9
Remove store-polled turn cancellation
gregpr07 Jun 4, 2026
01191c4
Restart interrupted agents from runtime mailbox
gregpr07 Jun 4, 2026
8fa872e
Close durable descendant edges from runtime
gregpr07 Jun 4, 2026
0ea84c6
Make runtime turn input ignore store followup markers
gregpr07 Jun 4, 2026
79e9e1a
Stop CLI live cancel from using store cancellation
gregpr07 Jun 4, 2026
9a95560
Require runtime child completion in CLI
gregpr07 Jun 4, 2026
0708e3f
Require runtime child completion in TUI
gregpr07 Jun 4, 2026
21242df
Stop TUI live cancel from using store cancellation
gregpr07 Jun 4, 2026
ee2b474
Fail provider setup on missing runtime resources
gregpr07 Jun 4, 2026
d5d010e
Own browser script runs through backend registries
gregpr07 Jun 4, 2026
1b0714b
Guard exec resources by runtime agent
gregpr07 Jun 4, 2026
a034346
Make fresh prompt input runtime owned
gregpr07 Jun 4, 2026
71fff62
Keep runtime deferral out of store followup state
gregpr07 Jun 4, 2026
dcaef74
Materialize runtime live state on resume
gregpr07 Jun 4, 2026
4c827d3
Materialize resumed child threads
gregpr07 Jun 4, 2026
d08d783
Own browser leases in runtime runs
gregpr07 Jun 4, 2026
8a784ef
Hydrate runtime state for TUI counters
gregpr07 Jun 4, 2026
db97e86
Route runtime session wrapper through run_agent
gregpr07 Jun 4, 2026
31a49bc
Clean up failed runtime completions
gregpr07 Jun 4, 2026
50f35c2
Stabilize exec cancellation snapshots
gregpr07 Jun 4, 2026
3995875
Harden retry mock header reads
gregpr07 Jun 4, 2026
e656530
Hide replay materialization from live TUI
gregpr07 Jun 4, 2026
58c4007
Remove test-only TUI import warning
gregpr07 Jun 4, 2026
0b3e7ec
Close runtime children through durable projection
gregpr07 Jun 4, 2026
4f11f23
Route compatibility runs through runtime
gregpr07 Jun 4, 2026
f66317f
Clarify runtime-owned live paths
gregpr07 Jun 4, 2026
40f9bce
Read live turn history through runtime journal
gregpr07 Jun 4, 2026
7716cb1
Route CLI spawn through live runtime
gregpr07 Jun 4, 2026
dd75e5c
fix local Chrome profile selection flow
laithrw Jun 4, 2026
85f6a80
keep browser profile choice chat-only
laithrw Jun 4, 2026
454e07c
Harden runtime failure finalization
gregpr07 Jun 4, 2026
1190f0a
Align runtime wait mailbox semantics
gregpr07 Jun 4, 2026
2dcc565
Route initial input through runtime run requests
gregpr07 Jun 4, 2026
bbbf065
Publish terminal turn results through runtime
gregpr07 Jun 4, 2026
0e5ce8b
Derive run final result from runtime journal
gregpr07 Jun 4, 2026
f2a19f3
Route subagent lifecycle events through runtime
gregpr07 Jun 4, 2026
084eb8a
Harden SDK JSON-RPC request lifecycle
gregpr07 Jun 4, 2026
3563df2
Document live runtime inversion status
gregpr07 Jun 4, 2026
eb69d15
Overlay TUI live status from runtime
gregpr07 Jun 4, 2026
5b11d39
set default profile flow
laithrw Jun 4, 2026
e89d9cf
Stream SDK projected runtime events
gregpr07 Jun 4, 2026
d844181
Merge remote-tracking branch 'origin/main' into fix/local-browser-pro…
laithrw Jun 4, 2026
b671c19
Harden runtime lost resource replay coverage
gregpr07 Jun 4, 2026
3dc43ce
Harden runtime browser action ownership
gregpr07 Jun 4, 2026
b63f6e6
Name runtime tool resource bag
gregpr07 Jun 4, 2026
141c309
Cover SDK runtime lifecycle behavior
gregpr07 Jun 4, 2026
92afa9b
Refresh live runtime remaining risk audit
gregpr07 Jun 4, 2026
f997562
Add reducer-backed runtime projections
gregpr07 Jun 4, 2026
54fc7fc
Project runtime tool and terminal state
gregpr07 Jun 4, 2026
b2b5e10
Guarantee SDK final projection delivery
gregpr07 Jun 4, 2026
094d723
Make TUI active projection runtime-backed
gregpr07 Jun 4, 2026
fc3d7f0
Project runtime model request lifecycle
gregpr07 Jun 4, 2026
589775e
Route mailbox prompt projection through runtime
gregpr07 Jun 4, 2026
417e528
Route compaction checkpoints through runtime
gregpr07 Jun 4, 2026
806c6e2
Prefer runtime journal for turn history
gregpr07 Jun 4, 2026
3896aec
Move compaction window state into runtime
gregpr07 Jun 4, 2026
a3dacd5
Scope browser scripts to runtime browser handles
gregpr07 Jun 4, 2026
847034a
Barrier journal runtime browser resources
gregpr07 Jun 4, 2026
f47d5b3
Fail closed on runtime mailbox projection errors
gregpr07 Jun 4, 2026
46b3cdd
Prefer runtime journal for executor input
gregpr07 Jun 4, 2026
a8cabda
Fail closed on runtime input journal reads
gregpr07 Jun 4, 2026
f4dadee
Fail closed on runtime turn history reads
gregpr07 Jun 4, 2026
c75ccd9
Accept transient input from runtime journal
gregpr07 Jun 4, 2026
cd374c2
Thread durable run ids through runtime executor
gregpr07 Jun 4, 2026
31b9e9d
Publish terminal agent runtime events
gregpr07 Jun 4, 2026
1f05dfc
Require runtime handle for turn driver
gregpr07 Jun 4, 2026
1a57124
Make session run-once runtime-backed
gregpr07 Jun 4, 2026
10b6be8
Remove Store fallback for executor input
gregpr07 Jun 4, 2026
dfadbf7
Require runtime sink for turn driver
gregpr07 Jun 4, 2026
f16b141
Remove Store completion mailbox path
gregpr07 Jun 4, 2026
7702485
Make CLI child completion projection-only
gregpr07 Jun 4, 2026
fea1810
Publish SDK input events through runtime
gregpr07 Jun 4, 2026
84b26a9
Fix subagent capacity cap handling
gregpr07 Jun 4, 2026
d56c195
Isolate runtime browser registries
gregpr07 Jun 4, 2026
b544dbc
Store browser registries on runtime handles
gregpr07 Jun 4, 2026
06821e9
Fix live cancellation across CLI subagents
gregpr07 Jun 4, 2026
4b3db4e
Record live runtime inversion verification
gregpr07 Jun 4, 2026
bacade7
fix local Chrome profile recovery
laithrw Jun 4, 2026
fda5b9b
Bound local browser connect attach
gregpr07 Jun 4, 2026
db0a508
Handle local Chrome permission handshake
gregpr07 Jun 4, 2026
a1cf9da
Keep browser connected on CDP eval timeouts
gregpr07 Jun 4, 2026
caba51f
fix local chrome profile targeting; lock session to marker tab's brow…
laithrw Jun 4, 2026
ed4aec0
Merge remote-tracking branch 'origin/main' into fix/local-browser-pro…
laithrw Jun 4, 2026
6f0179b
Preserve browser status during script checkout
gregpr07 Jun 4, 2026
88901e3
Keep browser sessions registered during bridge calls
gregpr07 Jun 4, 2026
8c3e46d
verify local chrome profile and reconnect before browser work
laithrw Jun 4, 2026
64f9847
Fix root runtime completion transcript label
gregpr07 Jun 4, 2026
7e7aa82
close targeting tab after checkbox ticked
laithrw Jun 4, 2026
60545fb
Fix local Chrome browser session hangs
gregpr07 Jun 4, 2026
89beefc
after attaching to profile, close all marker tabs in same browserCont…
laithrw Jun 4, 2026
2cba0b3
rm duplicate about:blank target
laithrw Jun 4, 2026
bcafda2
Shorten browser target-gone diagnostics
gregpr07 Jun 4, 2026
98bcfba
fix local Chrome profile attach flow
laithrw Jun 4, 2026
8ca1bcc
Fix local Chrome profile reconnects
laithrw Jun 4, 2026
4ed3655
keep local chrome on selected profile
laithrw Jun 4, 2026
9122073
Merge main into live runtime rewrite
gregpr07 Jun 4, 2026
9ce3de3
Merge local Chrome profile preflight behavior
gregpr07 Jun 4, 2026
6ec092e
Make SDK server use memory runtime
gregpr07 Jun 4, 2026
739169d
Enable real SDK runs through memory runtime
gregpr07 Jun 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ members = [
"crates/browser-use-llm",
"crates/browser-use-providers",
"crates/browser-use-python-worker",
"crates/browser-use-runtime",
"crates/browser-use-protocol",
"crates/browser-use-store",
"crates/browser-use-tui",
Expand Down
20 changes: 20 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,26 @@ tasks:
echo " unset LLM_BROWSER_ANTHROPIC_API_KEY LLM_BROWSER_OPENAI_API_KEY LLM_BROWSER_OPENAI_COMPAT_API_KEY LLM_BROWSER_DEEPSEEK_API_KEY"
echo " (Codex login at ~/.codex/auth.json is left intact — global Codex auth.)"

reset:profile:
aliases:
- profile:reset
- reset-profile
desc: Clear the saved default local Chrome profile
silent: true
cmds:
- |
set -eu

state_dir="${STATE_DIR:-$HOME/.browser-use-terminal}"
db="$state_dir/state.db"

if [ -f "$db" ]; then
sqlite3 "$db" "DELETE FROM app_settings WHERE key IN ('browser.preference.profile', 'browser.preference.profile_label');"
echo "profile reset: $db"
else
echo "no existing state.db at $db — nothing to reset"
fi

auth:clear:
aliases:
- clear-auth
Expand Down
1 change: 1 addition & 0 deletions crates/browser-use-agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ browser-use-llm = { path = "../browser-use-llm" }
browser-use-providers = { path = "../browser-use-providers" }
browser-use-protocol = { path = "../browser-use-protocol" }
browser-use-python-worker = { path = "../browser-use-python-worker" }
browser-use-runtime = { path = "../browser-use-runtime" }
browser-use-store = { path = "../browser-use-store" }
anyhow.workspace = true
async-trait.workspace = true
Expand Down
31 changes: 25 additions & 6 deletions crates/browser-use-agent/src/config_overrides.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ pub const DEFAULT_MAX_CONTEXT_CHARS: usize = 240_000;
/// Codex MultiAgentV2 defaults. These mirror Codex's `MultiAgentV2Config`
/// values, with v2 enabled by default for this terminal's model-visible toolset.
pub const DEFAULT_MULTI_AGENT_V2_MAX_CONCURRENT_THREADS_PER_SESSION: usize = 4;
pub const DEFAULT_MULTI_AGENT_V2_MIN_WAIT_TIMEOUT_MS: i64 = 10_000;
pub const DEFAULT_MULTI_AGENT_V2_MIN_WAIT_TIMEOUT_MS: i64 = 1;
pub const DEFAULT_MULTI_AGENT_V2_MAX_WAIT_TIMEOUT_MS: i64 = 3_600_000;
pub const DEFAULT_MULTI_AGENT_V2_DEFAULT_WAIT_TIMEOUT_MS: i64 = 30_000;
pub const HARD_MIN_MULTI_AGENT_V2_TIMEOUT_MS: i64 = 0;
pub const DEFAULT_MULTI_AGENT_V2_DEFAULT_WAIT_TIMEOUT_MS: i64 = 300_000;
pub const HARD_MIN_MULTI_AGENT_V2_TIMEOUT_MS: i64 = 1;
pub const HARD_MAX_MULTI_AGENT_V2_TIMEOUT_MS: i64 = DEFAULT_MULTI_AGENT_V2_MAX_WAIT_TIMEOUT_MS;

/// Parsed CLI/TUI `--config key=value` overrides: an ordered list of dotted TOML
Expand Down Expand Up @@ -2075,18 +2075,37 @@ nickname_candidates = ["Hypatia", "Noether"]

#[test]
fn rejects_invalid_multi_agent_v2_config() {
let _guard = crate::test_env::lock();
let overrides = parse_config_overrides(&ov(&[
"features.multi_agent_v2.max_concurrent_threads_per_session=0",
"features.multi_agent_v2.min_wait_timeout_ms=1",
"features.multi_agent_v2.default_wait_timeout_ms=1",
"features.multi_agent_v2.max_wait_timeout_ms=1000",
]))
.unwrap();
let err = resolve_multi_agent_v2_for_profile(None, &overrides).unwrap_err();
assert!(err
.to_string()
.contains("max_concurrent_threads_per_session must be at least 1"));

let overrides =
parse_config_overrides(&ov(&["features.multi_agent_v2.tool_namespace=functions"]))
.unwrap();
let overrides = parse_config_overrides(&ov(&[
"features.multi_agent_v2.min_wait_timeout_ms=0",
"features.multi_agent_v2.default_wait_timeout_ms=1",
"features.multi_agent_v2.max_wait_timeout_ms=1000",
]))
.unwrap();
let err = resolve_multi_agent_v2_for_profile(None, &overrides).unwrap_err();
assert!(err
.to_string()
.contains("min_wait_timeout_ms must be at least 1"));

let overrides = parse_config_overrides(&ov(&[
"features.multi_agent_v2.tool_namespace=functions",
"features.multi_agent_v2.min_wait_timeout_ms=1",
"features.multi_agent_v2.default_wait_timeout_ms=1",
"features.multi_agent_v2.max_wait_timeout_ms=1000",
]))
.unwrap();
let err = resolve_multi_agent_v2_for_profile(None, &overrides).unwrap_err();
assert!(err.to_string().contains("reserved namespace"));
}
Expand Down
Loading