Skip to content

Comments

External browser#152

Draft
hotzen wants to merge 4 commits intospacedriveapp:mainfrom
hotzen:external-browser
Draft

External browser#152
hotzen wants to merge 4 commits intospacedriveapp:mainfrom
hotzen:external-browser

Conversation

@hotzen
Copy link
Contributor

@hotzen hotzen commented Feb 22, 2026

Add connect_url to BrowserConfig so agents can connect to an external chromedp/headless-shell container via CDP instead of launching a local Chrome process.

  • Workers share the container (one tab each);
  • Browser Cntainer is managed externally, e.g. Docker Compose.

Config (src/config.rs)

  • Added connect_url: Option to BrowserConfig
  • BrowserState tracks external: bool to distinguish connected vs launched browsers
  • handle_launch() branches: Browser::connect() for external, Browser::launch() for local
  • handle_close() drops the struct without sending CDP Browser.close for external browsers (sending it would kill the shared sandbox and all other workers' tabs)

Docs (docs/docker.md)

  • Added "External Browser" section with compose examples: host+Docker, both-in-Docker, per-agent dedicated sandboxes

@jamiepine
Copy link
Member

Woah! Love this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants