stop spawned commands on exit - #62
Conversation
Move external command execution behind an application-scoped executor and propagate Cobra’s context through Bubble Tea and command runs. When the TUI exits, the executor stops new runs, cancels active direct children, and waits for cleanup. A one-second wait delay prevents inherited output pipes from blocking shutdown; terminating descendant process trees remains out of scope.
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
Included review availability: Your plan includes up to 1 review per rolling hour; 0 remain after this review. 📝 WalkthroughWalkthroughAdds a context-aware executor that runs commands with custom environments, wait delays, cancellation, and shutdown handling. Command startup creates and shuts down one executor. The UI receives the command context and executor. Initial, restart, sequential, parallel, and delayed command execution paths use the shared executor. Merge Risk: ⚪ Minimal · up to The change coordinates spawned command shutdown and cancellation without any identified actionable merge-blocking risk; it is merge-ready after normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Move external command execution behind an application-scoped executor and propagate Cobra’s context through Bubble Tea and command runs.
When the TUI exits, the executor stops new runs, cancels active direct children, and waits for cleanup. A one-second wait delay prevents inherited output pipes from blocking shutdown; terminating descendant process trees remains out of scope.
Implements #61.