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
Sandbox.connect(currentRunningSandbox?.sandboxId || currentPausedSandbox?.sandboxId, { timeoutMs: sandboxTimeout })
Sandbox.betaCreate(template, {
metadata: {
template,
userID: userId,
roomID: roomId,
createdAt: new Date().toISOString(),
},
timeoutMs: sandboxTimeout,
autoPause: true,
})
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:
Expected behavior
File changes and additions should persist after every resume, not just the first one.
Additional context