@devries-cameron20 / t3code Mirror · read-only / commits / 91cf202177
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 08:45 UTC

Scope telemetry flush loop to service lifecycle

- Replace detached flush worker with scoped fiber in `AnalyticsService` - Ensure periodic analytics flushing is tied to layer lifetime/cleanup

Julius Marminge committed Mar 5, 2026 at 19:10 UTC 91cf202177b91719cbc7a67e6f5a685d309be691
1 file changed +1 -1
apps/server/src/telemetry/Layers/AnalyticsService.ts
+1 -1
@@ -134,7 +134,7 @@ const makeAnalyticsService = Effect.gen(function* () {
134
135 yield* Effect.forever(Effect.sleep(1000).pipe(Effect.flatMap(() => flush)), {
136 disableYield: true,
137 - }).pipe(Effect.forkDetach);
137 + }).pipe(Effect.forkScoped);
138
139 yield* Effect.addFinalizer(() => flush);
140