Repository navigation
deploy/demo: the first browser call boots a VM with the browser stack already in it - #483
Merged
Merged
Conversation
…d in The first browser call spent 14.7 s installing Chromium and supergateway inside the front's first request. up.sh now builds an E2B template once (named by a hash of its install script, reused if it exists), the VM boots from it, Chromium is warmed and the bridge started beside the bundle seed, and the AI_AGENT_MCP_ALLOW_PRIVATE switch is gone: a sandbox connector may dial the exec origin. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JimHGjsfk2Ktm5GxyZJKKk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The first browser call took 18.2 s, 14.7 s of it installing the browser stack inside the exec front's first request, which risks the agent's handshake timeout.
up.sh now builds an E2B template once (e2b_browser_template: named by a hash of the install script, found and reused if present; account-owned, so down.sh keeps it), the front boots browser VMs from it, warms Chromium and starts the bridge beside the bundle seed, and AI_AGENT_MCP_ALLOW_PRIVATE is removed (a sandbox connector may reach the exec origin since #482). The vm-created check now keys on the first browser tool the model calls.
Live (SANDBOX=both, one up): browser 6/6, first call to result 10.5 s (VM 3.0, bundle 0.9, bridge 5.7, call 0.9), open 311 ms, 0 exec requests and 0 VMs at open. Coding 6/6, VM first result 3.8 s, unchanged. Teardown verified zero.
🤖 Generated with Claude Code
https://claude.ai/code/session_01JimHGjsfk2Ktm5GxyZJKKk