Skip to content

The open-source app everyone uses to manage agents at work

fix(runtime): handle empty dev runner responses

dotta1de139341353
diff --git a/scripts/dev-runner-output.ts b/scripts/dev-runner-output.ts
index 213dde412a..029e7bfe59 100644
--- a/scripts/dev-runner-output.ts
+++ b/scripts/dev-runner-output.ts
@@ -74,7 +74,7 @@ export async function parseJsonResponseWithLimit<T>(
}
if (!response.body) {
- return JSON.parse("") as T;
+ throw new Error("Response has no body");
}
const reader = response.body.getReader();