Push Task Errors to Neo-Backend
Version: 3.0.0 Date: 2026-05-07
Goal: Make task errors visible to the team without SSH access by reporting them to the central API.
Solution: Fire-and-forget POST to /v2/client-errors whenever a task transitions to error state.
Features:
- Task errors automatically reported to neo-backend on failure
- Error cause chain flattened to a unified
[{ name, message, stack, code }]array - Includes context: app version, task type, source type, file name
Implementation Details:
flattenError()walks the nestedcausechainreportError()POSTs to/v2/client-errorswith Bearer auth- Fire-and-forget (
.catch(() => {})) — never blocks task lifecycle appVersionread frompackage.jsonat service init
Files Modified:
src/utils/errors.ts-flattenErrorfunctionsrc/protocol/bcyip/api.ts-reportError+ClientErrorPayloadinterfacesrc/core/task/task.service.ts- Fire-and-forget call intaskError()src/utils/errors.spec.ts- Unit tests forflattenErroranderrorReplacersrc/core/task/task.service.spec.ts- Unit tests fortaskErrorerror reporting