Elffuss BraidHub

kikocis/continue public

fix: don't leave posthog hanging
Changeset1f4a56f3e948d4030669d729c854f705ec1c82b11e72289f15888fa80c3b0bec
AuthorNate <sestinj@gmail.com> · 2025-08-27 22:16 -07:00
CommitterNate <sestinj@gmail.com> · 2025-08-27 22:16 -07:00
Parents7114f117114e

Browse the files at this changeset

1 file changed

modified core/util/TokensBatchingService.ts +3 −0
@@ -85,6 +85,9 @@
8585 this.flushTimer = setInterval(() => {
8686 this.flushAllBatches();
8787 }, this.FLUSH_INTERVAL_MS);
88+ // Allow the process to exit if this timer is the only thing keeping it alive
89+ // This prevents test hangs and allows graceful shutdown
90+ this.flushTimer.unref();
8891 }
8992
9093 private flushAllBatches(): void {