devbonzai 2.0.9 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +5 -7
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -1731,14 +1731,12 @@ app.post('/prompt_agent_stream', (req, res) => {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
});
|
|
1733
1733
|
|
|
1734
|
-
// Handle client disconnect
|
|
1734
|
+
// Handle client disconnect - DON'T kill the process, let it complete
|
|
1735
1735
|
req.on('close', () => {
|
|
1736
|
-
console.log('🔵 [prompt_agent_stream] Client disconnected');
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
proc.kill('SIGTERM');
|
|
1741
|
-
}
|
|
1736
|
+
console.log('🔵 [prompt_agent_stream] Client disconnected (process continues in background)');
|
|
1737
|
+
// Don't kill the process - let it complete
|
|
1738
|
+
// Just mark that we shouldn't try to send more events
|
|
1739
|
+
responseSent = true;
|
|
1742
1740
|
});
|
|
1743
1741
|
});
|
|
1744
1742
|
|