Repository navigation
Description
Bug Description
Desktop Advice Generated and Task Extracted (PostHog $lib=posthog-ios, macOS production com.omi.computer-macos) dropped from hundreds of users/day to exact zero at 2026-09-01 21:00 UTC and were still zero through 2026-09-12. This is a value-loop break (Insight/Task assistants), not a launch-DAU outage. Launch DAU held (~422 on 8/31 vs ~405 on 9/11).
Do not treat this as JIT-fleet, onboarding-rerun, or a macOS 0.12.272 client regression. Build 0.12.228 (no #12549) also went to zero in the same hour.
Steps to Reproduce / Evidence
- PostHog project 302298, complete UTC hours:
- 2026-09-01 20:00Z: Advice 21 users, Task Extracted (ios) 67 users
- 2026-09-01 21:00Z: 0 / 0 and stayed 0 through 9/12
- Same hour:
Memory Extracted(macOS) continued (~22 users); backendTask Extracted($lib=posthog-python) continued
- Version split (production namespace):
0.12.2289/1: Task 231 / Advice 194; 9/2: 0 / 0 (noOnboarding Rerun Triggeredon 228)0.12.256already 0/0 on 9/10.12.272never emitted these events in this window
- Timing vs desktop-backend prod:
- Deploy Desktop Backend to Production 2026-09-01 20:21–20:38Z, SHA
31248b6c8 - That SHA has
backend/utils/llm/desktop_gemini_gateway.py(SCA-365). Prior prod SHA36c467fd2(2026-08-25) does not. - Insight/Task go through
/v1/proxy/gemini/*with a server key, so old clients die without a new binary.
- Cloud Logging on service
desktop-backend(notomi-desktop-backend) for 20:00–22:00Z, eventdesktop_gemini_proxy_terminal, revisiondesktop-backend-31248b6c891a-33554842649-1:
- Extraction
generateContent200s continue on flash-lite, flash, and pro viaprovider_route=llm_gateway - Concurrent 429
outcome=rate_limitedphase=meteringprovider_route=unselectedon the same models - Live literals (2026-09-12):
OMI_LLM_GATEWAY_FEATURE_MODE=gateway(do not flip off from this issue alone)
Expected Behavior
InsightAssistant / TaskAssistant keep emitting Advice Generated / Task Extracted for qualifying desktop sessions. Exact-zero should page (release-health already lists Advice as an availability metric).
Actual Behavior
Client events are hard-zero. Gateway hop is not a total outage (200s exist). Assistants are not recording success. 429 metering is the best in-proxy lead.
Environment
- OS: macOS Desktop production
- PostHog: project 302298
- Cloud Run:
desktop-backend/based-hardware/us-central1 - Onset: 2026-09-01T21:00Z after desktop-backend prod
31248b6c8
Ruled out
jit-processing-v1(cohort flag, ~9–20 admit users/day, last updated 8/29; Advice healthy 8/30–9/1)#12549JIT ambient lane (cannot change 228 binaries)desktop-onboarding-rerun(751 rerun users; cohort did not shrink; 228 had zero rerun events)#12544legacy task scan (read path only; python Task Extracted continued)- S13/S14 plan-gating feat(backend): plan-gate desktop Gemini generate for basic non-BYOK users (S14) #12839/S13: desktop .planGated at Gemini and pixel lane clients #12863 (merged 9/6, after onset)
- Stable rollback to 0.12.228 (client proxy path equivalent; server hop is the shared factor)
#13448pusher freeze (listen finalization; does not move these desktop assistant events)#13465free-tier on-device embeddings (different decision; embeddings still 200 in the 9/1 sample)
Recommended fix path (not authorized here)
- Attribute 9/1 21:00Z 429 vs 200 by
workload_class/ model vs Insight/Task caller (no UID/prompt in logs). - Restore emission without
OMI_LLM_GATEWAY_FEATURE_MODE=offunless logs later show a routing/credential outage. - Confirm desktop release-health exact-zero alarm for Advice (and add Task Extracted) actually pages.
Additional Context
Related: SCA-365 #12337, desktop Gemini proxy runbook backend/docs/runbooks/desktop-gemini-proxy-incidents.md. Not a substitute for #13448.
Activity
fix(backend): round-trip Vertex functionCall through the gateway (Bas…