Files
PaperClipAI/server/src/__tests__
devinfoleyandClaude Opus 5.5 97a4b46447 fix(tool-access): keep OAuth redirect-policy refusals out of Sentry
An authorization server that answers dynamic client registration with
400 invalid_redirect_uri is applying its own redirect policy. Paperclip
only sends callbacks built from trusted origins and already returns a
502 with remediation, so stop reporting this one case as a crash. Other
registration 400s, unknown codes and non-400 rejections stay reported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 06:12:21 +00:00
..
…

Server Tests

Server tests that need a real PostgreSQL process must use ./helpers/embedded-postgres.ts instead of constructing embedded-postgres directly.

The shared helper creates a throwaway data directory and a reserved-safe loopback port for each test database. This protects the live Paperclip control-plane Postgres from server vitest runs; see PAP-2033 for the incident that introduced this guard.