E2B
E2B copied to clipboard
Paused sandbox is not persisting the file changes / addition after second time resumed and onward
Describe the bug When a sandbox environment is paused and resumed multiple times, file changes or additions are not persisted after resuming. On the first resume, changes are retained as expected, but after subsequent resumes, file modifications and new files are lost.
To Reproduce Steps to reproduce the behavior:
- Go to the sandbox environment.
- Create or edit a file (e.g., add test.txt or modify existing code).
- Pause the sandbox.
- Resume the sandbox → changes persist (works correctly).
- Do some edit, or add file
- Pause the sandbox again.
- Resume the sandbox → file changes/additions are gone (bug occurs).
Expected behavior File changes and additions should persist after every resume, not just the first one.
Additional context
- resuming
Sandbox.connect(currentRunningSandbox?.sandboxId || currentPausedSandbox?.sandboxId, { timeoutMs: sandboxTimeout })
- creation
Sandbox.betaCreate(template, {
metadata: {
template,
userID: userId,
roomID: roomId,
createdAt: new Date().toISOString(),
},
timeoutMs: sandboxTimeout,
autoPause: true,
})
I have the same use case. Is this bug fixed already?