E2B icon indicating copy to clipboard operation
E2B copied to clipboard

[Bug]: Incomplete filesystem snapshot on timeout-triggered auto-pause

Open chenyanv opened this issue 10 months ago • 1 comments

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

  1. Create and run a sandbox
  2. Write/modify files in the sandbox
  3. Wait for sandbox to timeout and auto-pause
  4. Resume the sandbox
  5. Check the files

Additional context

No response

chenyanv avatar Jan 29 '26 02:01 chenyanv

ENG-3454

linear[bot] avatar Jan 29 '26 02:01 linear[bot]