feat(desktop): simplify quit lifecycle with sync PID check and shutdown dialog
Replace the async daemon status resolution during quit with a synchronous PID file check, avoiding races when the event loop is shutting down. Show a blocking dialog so users know the daemon is stopping. Add --kill-timeout to the CLI stop command for the desktop app to control SIGKILL wait time.
This commit is contained in:
@@ -27,6 +27,7 @@ export function createDaemonCommand(): Command {
|
||||
.option("--home <path>", "Paseo home directory (default: ~/.paseo)")
|
||||
.option("--timeout <seconds>", "Wait timeout before failing (default: 15)")
|
||||
.option("--force", "Send SIGKILL if graceful stop times out")
|
||||
.option("--kill-timeout <seconds>", "Wait after SIGKILL before failing (default: 3)")
|
||||
.action(withOutput(runStopCommand));
|
||||
|
||||
addJsonOption(daemon.command("restart").description("Restart the local daemon"))
|
||||
|
||||
Reference in New Issue
Block a user