Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(robinhood-feed): flush stdout before exiting so a piped report is not cut off

nirholasb7f6d6cc5822
diff --git a/workers/robinhood-feed/scripts/smoke-live.mjs b/workers/robinhood-feed/scripts/smoke-live.mjs
index a08e10f6d..f7d6b3a18 100644
--- a/workers/robinhood-feed/scripts/smoke-live.mjs
+++ b/workers/robinhood-feed/scripts/smoke-live.mjs
@@ -184,8 +184,15 @@ async function main() {
console.log('\nPASS · robinhood-feed live smoke');
}
-main().then(() => process.exit(0), (err) => {
+// process.exit() drops whatever is still buffered when stdout is a pipe or a
+// file, which silently truncates the report. Flush, then exit.
+const flushAndExit = async (code) => {
+ await new Promise((resolve) => process.stdout.write('', resolve));
+ process.exit(code);
+};
+
+main().then(() => flushAndExit(0), (err) => {
console.error('\nFAIL · robinhood-feed live smoke');
console.error(err);
- process.exit(1);
+ return flushAndExit(1);
});