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.
Files changed (2) hide show
  1. package/cli.js +5 -7
  2. 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
- clearInterval(pollInterval);
1738
- if (timeoutId) clearTimeout(timeoutId);
1739
- if (proc && !proc.killed) {
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devbonzai",
3
- "version": "2.0.9",
3
+ "version": "2.1.0",
4
4
  "description": "Quickly set up a local file server in any repository for browser-based file access",
5
5
  "main": "cli.js",
6
6
  "bin": {