Files
PaperClipAI/server
Priya RamanandPaperclip 312bbad10a fix(server): keep Sentry reporting for uncaught exceptions when the postgres guard is off
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>
2026-09-04 02:08:07 +00:00
..