fix: await process.kill() in killBatchRun to prevent race condition#352
fix: await process.kill() in killBatchRun to prevent race condition#352pedramamini merged 1 commit intomainfrom
Conversation
The IPC call window.maestro.process.kill() returns Promise<boolean> but was never awaited, causing state cleanup to race ahead of actual process termination. This could lead to stale process instances and corrupted batch state.
Code ReviewSummaryThis PR fixes a critical race condition in batch run termination. The fix is correct and necessary - window.maestro.process.kill() returns Promise but was never awaited, allowing state cleanup to race ahead of actual process termination. ✅ Strengths
|
Summary
killBatchRunwherewindow.maestro.process.kill()(returnsPromise<boolean>via IPC) was never awaited, causing state cleanup steps to execute before process termination completedTest plan
npm run lintpasses clean