mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-21 14:22:14 +03:00
Antigravity double-wraps its own errors: buildAntigravityUpstreamError() replaced error.message with the generic "Antigravity upstream error (400)" template and buried the real Gemini-dialect detail under upstream_details. chatCore's shared failure path re-parses that already-wrapped body with the generic parseUpstreamError(), which only reads the outer error.message, so the generic text is what ends up in createErrorResult, the persisted call logs, and the [ProxyEgress] antigravity status=error lines. buildAntigravityUpstreamError() now composes error.message from the real upstream detail when present, so both the HTTP response and every log/telemetry consumer that reads error.message get the actual detail. Regression test: tests/unit/antigravityUpstreamError.test.ts