Repository navigation
Conversation
- With experimental.sandbox_execution on, the shell tool takes a runner option, and rules in ~/.fx/sandbox/config.json can place commands in a Vercel Sandbox or in a throwaway isolated one. - The first remote command asks for the Vercel team and project in the same chat and saves the choice. - A built-in runner talks to the Vercel API directly, so remote runs no longer need the Vercel CLI or the vercel.sh script. - Remote runs upload tracked and unignored files plus include paths, stream output, and bring changed files back, keeping the local copy when both sides changed it. - Isolated runs use a new sandbox with no network by default, save their outputs in fx's state folder, and delete the sandbox when they end. - A stopped or expired sandbox session is resumed once, and a command that may have started is never sent twice. - Session approvals name where a command runs and which Vercel project it uses, so approving a local command never approves the remote one. - A third-party runner can replace the built-in one through provider in the config. - fx no longer sweeps old sandboxes at startup.
- Import each vercel_* fuzz target's file in fuzz_targets.zig, as the fuzz registry test expects. - Keep the shell tool's description out of libfx's native addons by gating the runner projection on builtin_tools. - Report a stop during a stalled upload as a stop, not a transport failure. - Log runner output and sandbox cleanup that fx drops, and say why the remaining ignored errors are safe. - Read the test server's request count under its lock, so tests do not race the server thread. - Restore the exact empty env check and IsolatedCleanedUp in the sandbox model's design config.
This branch has not been deployed
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.
Summary
experimental.sandbox_executionon, theshelltool takes arunneroption, and rules in~/.fx/sandbox/config.jsoncan place commands in a Vercel Sandbox or in a throwaway isolated one.vercel.shscript.includepaths, stream output, and bring changed files back, keeping the local copy when both sides changed it.providerin the config.Notes for review
setup, orprovider). The tests of the old fake sandbox CLI moved to the fake Vercel API inrunner.test.tsandsandbox-provider.test.ts, with a matching check for each old claim.src/core/runnerreports nothing there. The leak and races it reports elsewhere are also in the latest TSan run onmain.vercel_*target with saved inputs. Ten ran for 60 seconds each without a failure, and the rest run in the nightly job.mutation-no-sweepis replaced bymutation-skip-cleanup, which checksIsolatedCleanedUpwith the cleanup that now runs before an isolated create.Docs: vercel-labs/fx-web#368
Stacked on #2153.