fix(e2b): close remote lifecycle gaps

This commit is contained in:
Tianyi Cui
2026-07-28 16:26:20 +08:00
parent e64d40837c
commit 3dea36f1ce
22 changed files with 568 additions and 181 deletions

View File

@@ -56,6 +56,7 @@ function makeInstance(
maxStderrBytes: 100_000,
shutdownTimeoutMs: 200,
killGraceMs: 200,
pathToFileUri: path => pathToFileURL(path).href,
...overrides,
}, spawnSubprocess, writer)
live.push(instance)
@@ -91,6 +92,7 @@ function scriptInstance(script: string, overrides: Partial<InstanceSpec> = {}):
maxStderrBytes: 100_000,
shutdownTimeoutMs: 150,
killGraceMs: 150,
pathToFileUri: path => pathToFileURL(path).href,
...overrides,
}, spawnSubprocess)
live.push(instance)