mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 17:45:53 +01:00
Sentry's default `OnUncaughtException` integration was removed unconditionally, but the postgres null-socket write guard only owns the process's `uncaughtException` decision while it is enabled. With POSTGRES_NULL_SOCKET_GUARD_ENABLED=false, no listener took its place, so an unrelated uncaught exception reached no error reporter. `sentry.ts` now reads the same opt-out through a new leaf module, postgres-null-socket-guard-env.ts, and keeps the default OnUncaughtException integration active whenever the guard is disabled. Splitting the opt-out check into its own module avoids a circular import between sentry.ts and postgres-null-socket-guard.ts. Co-authored-by: Paperclip <noreply@paperclip.ing>