Repository navigation
Closed
Labels
backendBackend Task (python)bugSomething isn't workingdesktopp1Priority: Critical (score 22-29)reliability
Description
Summary
Production desktop-backend is returning persistent gateway timeouts on the Gemini proxy endpoint while /health remains green.
This is a capability-specific prod degradation: public liveness checks pass, but a real desktop AI path is failing repeatedly.
Evidence
Observed during read-only prod health checks on 2026-07-06 UTC:
- Public health endpoints all returned
200:https://api.omi.me/v1/healthhttps://api.omiapi.com/v1/healthhttps://agent.omi.me/healthhttps://agent.omiapi.com/health
desktop-backendCloud Logging errors:- last 10m: 13x
504on/v1/proxy/gemini/models/gemini-2.5-flash:generateContent - last 30m: 37x
504on the same endpoint - last 2h: 151x
504on the same endpoint
- last 10m: 13x
- Related but separate noise in the same service:
- last 2h: 24x
500on/v1/webhooks/sentry/poll - last 2h: 1x
503on/v1/tts/synthesize
- last 2h: 24x
PostHog guardrails showed chat completions still happening, so this does not look like a total chat outage, but the Gemini proxy path is actively degraded.
Expected behavior
The desktop Gemini proxy should either succeed or return a bounded, typed error that distinguishes:
- upstream timeout
- upstream rate limit / quota
- auth / BYOK failure
- client cancellation
- internal proxy failure
It should not repeatedly surface as generic gateway timeouts without a capability-level alert.
Acceptance criteria
- Add/log structured error classification for Gemini proxy failures.
- Add a metric/dashboard/alert for desktop Gemini proxy
5xx/504rate. - Add a synthetic or capability health check for Gemini proxy behavior, separate from
/health. - Return a bounded, typed user-facing failure where possible instead of an opaque gateway timeout.
- Confirm the fix with Cloud Logging showing the Gemini proxy
504bucket dropping to near-zero over a comparable window.
Priority
P1: current prod capability degradation that /health does not catch.
Metadata
Metadata
Assignees
Labels
backendBackend Task (python)bugSomething isn't workingdesktopp1Priority: Critical (score 22-29)reliability
Activity
fix(backend): route pusher INFO logs to stdout so GKE stops tagging t…
fix(desktop): stop cutting off long-context Gemini calls at 90s (#9135)…
fix(desktop): stop cutting off long-context Gemini calls at 90s (Base…
fix(chat): consume one request deadline budget on the Anthropic path
harden(ci): reject chat provider sends that bypass send_with_deadline
fix(chat): consume one request deadline budget on the Anthropic path
harden(ci): reject chat provider sends that bypass send_with_deadline
fix(chat): consume one request deadline budget on the Anthropic path
harden(ci): reject chat provider sends that bypass send_with_deadline
fix(chat): count reasoning deltas as semantic progress
fix(chat): consume one request deadline budget on the Anthropic path
harden(ci): reject chat provider sends that bypass send_with_deadline
fix(chat): count reasoning deltas as semantic progress
fix(chat): consume one request deadline budget on the Anthropic path
harden(ci): reject chat provider sends that bypass send_with_deadline
fix(chat): count reasoning deltas as semantic progress
fix(chat): FC-4 request deadline budget for the Anthropic chat path (#…
fix(chat): FC-4 request deadline budget for the Anthropic chat path (B…