Skip to content

UI : add graceful shutdown on SIGINT/SIGTERM to prevent multiple instances being created#2429

Draft
PradeepSahhu wants to merge 1 commit into
AgentWrapper:mainfrom
PradeepSahhu:feat-graceful-shutdown
Draft

UI : add graceful shutdown on SIGINT/SIGTERM to prevent multiple instances being created#2429
PradeepSahhu wants to merge 1 commit into
AgentWrapper:mainfrom
PradeepSahhu:feat-graceful-shutdown

Conversation

@PradeepSahhu

@PradeepSahhu PradeepSahhu commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Issue:

  • When running npm run dev in the frontend directory and then stopping the terminal process using Ctrl + C , the underlying Electron app fails to shut down. Running npm run dev again spawns a new instance, resulting in multiple orphaned instances of the Electron app piling up in the macOS Dock.

Why?

  • The Ctrl + C (SIGINT) command successfully kills the Vite/Node development server, but the detached Electron process ignores the signal and continues running in the background as an orphaned process.
Screenshot 2026-07-05 at 11 09 40 AM

It Doesnt fix this issue will look deep into it.

@PradeepSahhu PradeepSahhu force-pushed the feat-graceful-shutdown branch from e3d2d53 to 4229130 Compare July 5, 2026 06:23
@PradeepSahhu PradeepSahhu marked this pull request as draft July 5, 2026 06:24
@PradeepSahhu PradeepSahhu force-pushed the feat-graceful-shutdown branch 2 times, most recently from 5d6dfd1 to 3e17b58 Compare July 5, 2026 06:36
@PradeepSahhu PradeepSahhu force-pushed the feat-graceful-shutdown branch from 3e17b58 to 88c63f4 Compare July 5, 2026 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant