Skip to content

Commit a5fe596

Browse files
Richardson Gundeclaude
authored andcommitted
Add copy_auth_domains field to BrowserConfig [#20]
Config field for future domain-filtered auth copying (Phase 2). Empty list = all domains when copy_auth=True. No enforcement yet. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent 771fa1c commit a5fe596

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

operator_use/web/browser/config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ class BrowserConfig:
8181
# copy_auth=True: opt-in to copying auth files — agent gains access to all logged-in accounts.
8282
# Only enable if you explicitly want the agent to use your real browser sessions.
8383
copy_auth: bool = False
84+
# copy_auth_domains: when copy_auth=True, only copy auth data for these domains.
85+
# Empty list (default) = copy all domains. Example: ["github.com", "gitlab.com"]
86+
# Domain filtering implementation is Phase 2 — field available now for config compatibility.
87+
copy_auth_domains: list = None
8488
# attach_to_existing=True: connect to an already-running browser on cdp_port instead of launching one.
8589
# The browser must have been started with --remote-debugging-port=<cdp_port>.
8690
# No process is launched or killed. Raises RuntimeError if nothing is listening on the port.

0 commit comments

Comments
 (0)