You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c98e3c7
Browse filesBrowse the repository at this point in the historyBrowse files
fix(sandbox): judge session lease coverage from the request's own clock reading (#8665)
ensureSessionSandbox subtracted elapsed time from the lease using one Date.now()
read, and the handle's outlives() added it back using a second read. When the
millisecond ticked between the two and the reconnect granted the lease in the
same millisecond the call captured, coverage fell 1ms short and an unneeded E2B
setTimeout was issued. outlives() now takes the reference time, so acquisition
measures from requestedAtMs with no second read.
The session lease test froze nothing and slept on a real timer, so it only failed
when the tick landed between the two reads. It now controls Date.now() to put the
tick exactly there.
0 commit comments