Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(e2e): close subagent model stream reader

vastsaf4ca319306ec
diff --git a/scripts/e2e-subagent-models.mjs b/scripts/e2e-subagent-models.mjs
index 081ea898d..339c392c8 100644
--- a/scripts/e2e-subagent-models.mjs
+++ b/scripts/e2e-subagent-models.mjs
@@ -104,7 +104,7 @@ const child = spawn(process.execPath, [fileURLToPath(new URL("../packages/agent-
let stderr = "";
child.stderr.on("data", (chunk) => { stderr += chunk; });
const send = (message) => child.stdin.write(`${JSON.stringify({ jsonrpc: "2.0", ...message })}\n`);
-readNdjsonLines(child.stdout, (line) => {
+const lines = readNdjsonLines(child.stdout, (line) => {
const message = JSON.parse(line);
if (message.method === "host.proxy") {
const { method, params } = message.params;