Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(life-scenarios): close search log before composio

Steven Enamakeld31521caa1f5
diff --git a/scripts/life-scenarios/run.mjs b/scripts/life-scenarios/run.mjs
index 175397f757..1c02e4525c 100644
--- a/scripts/life-scenarios/run.mjs
+++ b/scripts/life-scenarios/run.mjs
@@ -1115,6 +1115,10 @@ async function main() {
);
await composio.close();
}
+ // `close` flushes the search log itself, so the record survives a run that
+ // failed partway: it is the only evidence of what discovery actually
+ // returned, and a post-mortem needs it most on the runs that went wrong.
+ if (search) await search.close();
}
printReport(results);