Runtime changelog, 31 October 2026
What shipped in Runtime Cloud on 31 October 2026: stopping a sandbox always completes; previews wait for a server that is still starting; forks of a sandbox in use no longer fail with sandbox_not_paused; forks succeed when the source is woken during the fork; a failed fork deletes the copies it started; getOrCreate always returns the one sandbox that holds a name; sandbox list pagination returns every page; pull request checks into non-default branches use at most half of an account's CI/CD machines; requests that a secret's rules do not allow now return 403 from Runtime; commands start faster in new sandboxes; egress secrets reach every new sandbox; CI/CD setup can be a list of layers; and CI/CD: checks a release waits on get machines first.
Stopping a sandbox always completes
A stop that could not be recorded used to leave the sandbox in stopping permanently, and every request on it returned 500 operation_failed. The stop is now retried automatically every 5 minutes until the sandbox is stopped; meanwhile requests on it still return 500 operation_failed immediately, its files are kept, and nothing is charged. Sandboxes already stuck in stopping are stopped by the same retry.
Previews wait for a server that is still starting
Within 60 seconds after a sandbox is created or wakes, a preview or TCP port request to a port that is not listening yet now waits up to 10 seconds for the port to open, and is forwarded as soon as it does. Previously it returned 502 with x-runtime-preview-error: port_closed immediately, so a health check sent right after create failed until the server started. After 10 seconds the request still returns 502 port_closed. Requests to a port that is already listening are not delayed.
Forks of a sandbox in use no longer fail with sandbox_not_paused
If a command or other request woke the source between the fork's pause and the start of its copy, POST /v1/sandboxes/{id}:fork returned 409 sandbox_not_paused. Requests that wake a sandbox automatically now wait until the copy has started, up to one minute, and then proceed as before.
Forks succeed when the source is woken during the fork
POST /v1/sandboxes/{id}:fork pauses the source while it copies it. If another request woke the source during that time (for example, a command run on it), the fork returned 409 not_paused, said the source stayed paused, and left its copies running. The fork now returns its copies, and the source keeps running.
A failed fork deletes the copies it started
When POST /v1/sandboxes/{id}:fork fails after some copies have started, the copies that started are now deleted and no longer appear in GET /v1/sandboxes. The error's details.startedSandboxIds still names them, and details.copiesDeleted is true. When the error is a 5xx, a failure on Runtime's side (for example, no capacity for a later copy, a copy that does not reach running in time, or the source cannot be woken), none of their running time is billed and details.copiesBilled is false. When it is a 4xx, caused by the request or the account (a limit or quota, or a copy or the source deleted or changed during the fork), the time they ran is billed. A copy whose create completed after the fork had already failed is deleted too. A copy that could not be deleted at once is named outside details.deletedSandboxIds, details.copiesDeleted is false, and it is deleted within 15 minutes. If the server handling the fork stops before it returns, the fork is marked failed with a 500 once it has run longer than any fork can (15 minutes, plus about 20 seconds for each GiB of the source's memory), and its copies are deleted unbilled within 15 minutes after that. A fork that does not answer within the request deadline is a failure on Runtime's side, and its copies are not billed; if your client closes the connection before the fork answers, the copies are deleted and billed for the time they ran. Previously these copies kept running, and were billed, until you stopped them.
getOrCreate always returns the one sandbox that holds a name
Concurrent POST /v1/sandboxes requests with getOrCreate: true and the same name now return the same sandbox, including when that sandbox is paused, stopped with its disk kept, or being moved between regions. Previously, under load, a second sandbox could be created under the same name, and later calls by that name could return either one. A create with a name that cannot be placed at that moment, for example while capacity is short, returns 503 busy with Retry-After and creates nothing; retry it. In the Vercel-compatible TypeScript SDK, Sandbox.getOrCreate now creates a missing sandbox with getOrCreate, and so does get_or_create_sandbox in the Vercel-compatible Python SDK. Concurrent calls for the same name return the same sandbox instead of failing with 409 name_taken. resume: false still leaves a found sandbox paused.
Sandbox list pagination returns every page
GET /v1/sandboxes no longer returns 400 invalid_request (cursor) on the second or later page for organizations whose sandboxes run in more than one cell. Each sandbox is returned exactly once, oldest first, and nextCursor stays an opaque string to pass back unchanged. withruntime sandboxes ls and every SDK's list iterator page through the full list.
Pull request checks into non-default branches use at most half of an account's CI/CD machines
Checks of pull requests whose base is a branch other than the repository's production branch now hold at most half of the machines the account can run at once, combined. The other half stays available for checks of the production branch and of pull requests into it, so those start immediately even when many pull requests into another branch are being checked. A check waiting on this limit shows the reason in its jobs: how many machines checks into other branches hold and the most they may hold.
Requests that a secret's rules do not allow now return 403 from Runtime
A request that carries an egress secret's placeholder in a credential header, to a method and path that none of the secret's rules allows, is no longer sent to the destination with the placeholder. It returns 403 Forbidden with X-Runtime-Egress: secret-rule-not-matched, and the body names the secret, the method and the path. Previously the destination received the placeholder and typically returned 401 with no explanation. The sandbox.secret_not_applied event with reason rule_not_matched is still sent.
Commands start faster in new sandboxes
POST /v1/sandboxes/{id}:exec and process starts no longer wait for the API to look up the organization's egress secret placeholders. The sandbox supplies them from its host before every command, so each command still receives them. A command in a sandbox seconds old previously waited about 1.4 s for that lookup.
Egress secrets reach every new sandbox
A sandbox whose start carried no organization in its network rules trusted the egress CA but received none of its organization's secrets: their variables were missing from commands, and requests to the secrets' hosts were sent without credentials. Such a sandbox now gets its secrets like any other.
CI/CD setup can be a list of layers
setup: in runtime.yml now also accepts a list of up to 16 commands, run in order. A push to the production branch keeps each finished layer as a snapshot, keyed to that layer, the layers before it, the machine size and the cache files. A later setup starts from the deepest layer that is ready and runs only the layers after it, so a change to the last layer does not run the earlier ones again, and a setup that is stopped or fails partway keeps the layers it finished. Pull request checks start from these snapshots but never write them. A setup: of one command works as before.
CI/CD: checks a release waits on get machines first
When an account's checks are short of machines, a pull request from the repository's own branches into the production branch gets them first, then a push to the production branch, each oldest first, then every other check. While one of these waits, the account's lower checks hand it machines as their running tasks end. A pull request from a fork is ordered with every other check. To skip pull requests into a branch whose commits are tested another way, such as a staging branch, list the branches to check in the production branch's config: pull_requests: { branches: [main] }.