Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Pass anonymous functions to process

Tomas Valenta67198aec2b5d
diff --git a/api-service/playground/src/sessions/process.ts b/api-service/playground/src/sessions/process.ts
index 0276f8921..ed6d69a4c 100644
--- a/api-service/playground/src/sessions/process.ts
+++ b/api-service/playground/src/sessions/process.ts
@@ -37,8 +37,8 @@ export class CachedProcess {
const process = await createSessionProcess({
manager: this.manager,
...params,
- onStderr: stderr.push,
- onStdout: stdout.push,
+ onStderr: (o) => stderr.push(o),
+ onStdout: (o) => stdout.push(o),
})
process.exited.finally(() => {