Skip to content

Suspend and restore every deployment mode and pause E2B natively - #846

Merged
SaladDay merged 12 commits into
mainfrom
checkpoint-suspension-for-every-mode
Oct 24, 2026
Merged

SaladDay merged 12 commits into
mainfrom
checkpoint-suspension-for-every-mode

Conversation

@SaladDay

@SaladDay SaladDay commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Checkpoint support is admitted for nodes and direct registrations, and the E2B Provider implements every checkpoint operation with the pinned SDK's native pause and connect.

  • Adds RenewCompute as the tenth checkpoint operation (protocol, node wire, docs en/zh). Core uses it for the running phase when the Runtime is connected, since Renew addresses only the initial incarnation.
  • E2B: Go adapter and Python helper for all ten operations. One sandbox spans generations; the helper receipt records the generation, pause and resume, so superseded generations are ErrNotFound and kills and snapshot deletes never touch another generation's sandbox. Wake uses the new exported runtimebootstrap.SuspendControlFile.
  • Docker stays unsupported. The Web suspension copy follows the deployment mode.
  • Tests: helper tests with the fake SDK, direct registration, a direct idle suspend and wake integration test with native lease renewal.

Not run: Web vitest and website translation test (no dependencies installed), real E2B, mx, full make check.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@SaladDay
SaladDay force-pushed the checkpoint-suspension-for-every-mode branch from 6025350 to 67551d6 Compare October 24, 2026 01:21
@blacksmith-sh

This comment has been minimized.

Running compute renews its native lease under one condition, an open Runtime connection, which is the existing renewal condition. Sandbox metrics counts running sandboxes without suspended ones, and the Provider and deployment docs describe Bootstrap.SuspendControl and resources.running.
@SaladDay
SaladDay merged commit 07bbac7 into main Oct 24, 2026
25 checks passed
@SaladDay
SaladDay deleted the checkpoint-suspension-for-every-mode branch October 24, 2026 02:07
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.

1 participant