Commit e838aaa
fix(gui): comprehensive cleanup of child processes on Windows exit (#429)
When quitting the Tauri application on Windows, remaining child processes
were preventing clean exit, causing Windows to prompt to terminate the
command process.
This fix adds comprehensive cleanup in the ExitRequested event handler to
properly terminate all spawned child processes:
- Close all SSH terminal sessions
- Stop all LSP language servers
- Stop all debugger (DAP) sessions
- Disconnect all MCP context servers
- Stop all test watchers
- Stop live metrics monitoring thread
- Shutdown all REPL kernels
- Stop the MCP socket server (debug builds)
Also added a shutdown_all() method to KernelManager for cleaner REPL
kernel shutdown during app exit.
Fixes issue where npm run tauri:dev would leave orphan processes on Windows.
Co-authored-by: Droid Agent <droid@factory.ai>1 parent baecb8f commit e838aaa
2 files changed
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1485 | 1485 | | |
1486 | 1486 | | |
1487 | 1487 | | |
| 1488 | + | |
| 1489 | + | |
1488 | 1490 | | |
1489 | 1491 | | |
1490 | 1492 | | |
1491 | 1493 | | |
1492 | 1494 | | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
1493 | 1543 | | |
1494 | 1544 | | |
1495 | 1545 | | |
1496 | 1546 | | |
1497 | 1547 | | |
1498 | 1548 | | |
1499 | 1549 | | |
| 1550 | + | |
| 1551 | + | |
1500 | 1552 | | |
1501 | 1553 | | |
1502 | 1554 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
383 | 391 | | |
384 | 392 | | |
385 | 393 | | |
| |||
0 commit comments