mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-20 05:42:19 +03:00
tests/unit/model-sync-route.test.ts expected the persisted call-log error to be 'Invalid JSON response from /models', but the call-log write now runs the error through sanitizeErrorForLog -> errorPathRedaction, which redacts the path to <path> for stored logs (defense in depth for exported call logs). The live API response to the caller is unchanged (body.error still /models); only the persisted logs[0].error is redacted. Align the log assertion to the shipped behavior; body.error assertion stays /models. No production change — test alignment to an already-merged redaction. Refs base-red #12732.