Repository navigation
Fix Nova E2B checkout and workspace recovery - #362
Conversation
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughThe changes update E2B checkout and pause handling, sandbox recovery claims and ownership checks, and workspace setup errors. They also add a machine-template build script and document sandbox and template operations. ChangesNova sandbox lifecycle and templates
Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant Reconciler as reconcileSandboxWorkspaces
participant Database
participant E2B as E2B sandbox
participant Settlement
Reconciler->>Database: Claim row with recovery lease
Reconciler->>E2B: List sandboxes and update network policy
Reconciler->>E2B: Pause running sandbox
Reconciler->>Database: Check recovery claim ownership
Reconciler->>Settlement: Recover credits for active lease
Reconciler->>Database: Finalize while claim is owned
Merge Risk:
|
Fixes the E2B archive checkout failure by creating Git’s
.git/infodirectory before writing its attributes file, and adds regression coverage for the clean archive baseline.Verifies filesystem-only pause results before treating a workspace as stopped, and makes expired-workspace recovery claims exclusive and retryable so one cleanup worker cannot interrupt a newly reopened run. Startup errors now identify the failed phase without exposing provider error details.
Restores the ignored machine-template builder with dry-run and verified, atomic catalog updates, and documents E2B persistence and retention behavior. Disposable live tests confirmed checkout, patch export, filesystem preservation across reboot, process termination, resource sizes, and registry access on the existing templates.
Summary by CodeRabbit