The OAuth routes started a module-level cleanup interval that was never cleared or unref'd. The service's SIGTERM/SIGINT handler closes the server and relies on the event loop going empty, so the process kept running: a first Ctrl+C in `npx waggle` or `npm run dev:server` left it alive, and SIGTERM never ended it. The interval is now unref'd. The launcher tests left two `waggle` processes behind on every run: they stopped `npx` but not the waggle process it started. They now start it in its own process group and stop the whole group, with a SIGKILL fallback, and a new test checks that the built CLI exits by itself after SIGTERM.
31 KiB
31 KiB