mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-15 11:22:15 +03:00
recordRejectedRequestUsage persists the raw client body for a request rejected BEFORE handleChatCore runs (provider circuit-breaker OPEN / combo all-targets exhausted), so the video-bridge guardrail never got a chance to redact the transcript — a rejected video request kept its raw transcript cues in the call-log artifact. Route that body through redactVideoTranscriptFieldsForLog before persistence: a no-op clone for any non-video body, structured field substitution (never bypassable by cue content) for a video one. The model path is unaffected — this request never reaches a provider. TDD: RED→GREEN — a gate-rejected request carrying an input_video transcript now persists [redacted-video-transcript] with the raw cue text gone. Refs #12150, #12430 (item 7).