E2B
E2B copied to clipboard
[Bug]: Incomplete filesystem snapshot on timeout-triggered auto-pause
Sandbox ID or Build ID
No response
Context
When a sandbox auto-pauses due to timeout, the filesystem snapshot is incomplete. Data written before pause is lost after resume. (Not all data, but certain change lost)
Key Observation
- Manual pause (via API): ✅ Data preserved
- Timeout auto-pause: ❌ Data lost
Hypothesis
The auto-pause snapshot is taken before filesystem buffers are fully flushed, or there's a race condition capturing an inconsistent state.
Impact
Users lose work if they don't manually pause before leaving.
Timestamp of the issue
2026-01-28, ET
Frequency
Happens occasionally
Expected behavior
All filesystem changes should be preserved after resume.
Actual behavior
Some filesystem changes are lost. The sandbox state rolls back to an earlier point in time. (Not always, sometimes)
Issue reproduction
- Create and run a sandbox
- Write/modify files in the sandbox
- Wait for sandbox to timeout and auto-pause
- Resume the sandbox
- Check the files
Additional context
No response