Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
Going to do a follow up PR on the way the SDK handles returning "creating" and "running" etc, so there is something more awaitable, and errors are surfaced from patching more cleanly |
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.
Snapshot patch API — adds POST/GET/DELETE /snapshots/:name/patches so you can attach patches to snapshots by name instead of having to know the
underlying checkpoint ID. Resolves snapshot → checkpoint internally, delegates to existing patch logic. No new tables or migrations.
Snapshot "my-env" → checkpoint cp-A
├── Sandbox sb-1 (based_on_checkpoint_id = cp-A, last_patch_sequence = 0)
│ └── Checkpoint cp-B (sb-1's frozen state)
│ └── Sandbox sb-3 (based_on_checkpoint_id = cp-B, last_patch_sequence = 0)
└── Sandbox sb-2 (based_on_checkpoint_id = cp-A, last_patch_sequence = 0)
You add a patch to snapshot "my-env" (which patches cp-A):
Patches are one level deep. They apply to sandboxes whose based_on_checkpoint_id matches the patched checkpoint. That's it. No cascading through
checkpoint chains.