fix(posthog): disable exception autocapture to stay within free tier

Error tracking exceeded 100K free tier limit (188K in 5 days).

Top exceptions were mostly noise:
- ProviderModelNotFoundError: 75K (user config issues)
- EPIPE/EOF/stream destroyed: 40K (normal pipe closures)
- ENOSPC: 3K (user disk space issues)

Manual captureException() for critical errors in runner.ts
is preserved. Only automatic unhandled exception capture is
disabled.
This commit is contained in:
YeonGyu-Kim
2026-04-15 15:30:40 +09:00
parent 47aa3025db
commit 0764526aca
+2 -2
View File
@@ -155,7 +155,7 @@ export function getPostHogDistinctId(): string {
export function createCliPostHog(): PostHogClient {
return createPostHogClient("cli", {
enableExceptionAutocapture: true,
enableExceptionAutocapture: false,
flushAt: 1,
flushInterval: 0,
})
@@ -163,7 +163,7 @@ export function createCliPostHog(): PostHogClient {
export function createPluginPostHog(): PostHogClient {
return createPostHogClient("plugin", {
enableExceptionAutocapture: true,
enableExceptionAutocapture: false,
flushAt: 1,
flushInterval: 0,
})