Skip to content

macOS realtime health: classify 0.12 provider session errors and fix Gemini token mint failures #8950

Closed

Description

@Git-on-my-level

Summary

The 2026-07-03 Omi Improvements Daily Report shows the new macOS desktop_health_event stream is still producing high-volume realtime health failures on 0.12.0. No existing open issue matched desktop_health_event, realtime_provider_session_error, realtime_token_mint_failed, or Gemini expected idle teardown, so this tracks the unresolved realtime-health work.

This may be partly instrumentation/noise (expected_idle_teardown should probably not read as a failure), but there are also real-looking unclassified provider errors and token mint failures affecting many users.

Evidence

Source: ~/.hermes/skills/omi/omi-improvements-dashboard/data/csv/2026-07-03/posthog_desktop_health_daily.csv and posthog_desktop_health_breakdown.csv

Daily health events:

Day Health event Events Users
2026-07-03 realtime_provider_session_error 42,322 495
2026-07-03 realtime_token_mint_failed 177 97
2026-07-03 ptt_audio_capture_silent_turn 166 49
2026-07-03 realtime_provider_policy_close 12 6

Top dimensional buckets:

App version/build Health event Provider Category Events Users First seen Last seen
0.12.0 / 12000 realtime_provider_session_error gemini expected_idle_teardown 32,607 437 2026-07-03T06:37:52Z 2026-07-03T13:15:13Z
0.12.0 / 12000 realtime_provider_session_error gemini unclassified 2,044 364 2026-07-03T06:47:05Z 2026-07-03T13:14:54Z
0.12.0 / 12000 realtime_provider_session_error openai unclassified 243 135 2026-07-03T07:14:11Z 2026-07-03T13:14:23Z
0.12.0 / 12000 realtime_token_mint_failed gemini empty 108 83 2026-07-03T07:28:56Z 2026-07-03T13:09:02Z

Why this is not solved

  • The largest buckets are on the current stable macOS build 0.12.0 / 12000.
  • Last-seen timestamps are within the report collection window.
  • Health-event users jumped from 0 in the 7-day comparison baseline to hundreds in the current report.
  • PTT silent-turn users are present on the same day, so this should be checked for user-visible capture/voice-turn impact rather than dismissed as teardown noise.

Suggested investigation

  1. Split expected lifecycle teardown from actual provider/session failures in analytics and alerting.
  2. Root-cause Gemini realtime_token_mint_failed for 0.12.0 clients.
  3. Classify the unclassified Gemini/OpenAI provider session errors.
  4. Correlate provider/session errors with ptt_audio_capture_silent_turn and watchdog events.
  5. Add enough dimensions to tell whether this is provider-specific, auth/token-specific, input-device-specific, or purely instrumentation noise.

Acceptance criteria

  • Expected idle teardown is no longer reported as a failure-like high-signal bucket, or it is clearly separated from real failures.
  • Gemini token mint failures have a known root cause and drop materially from the 2026-07-03 baseline.
  • unclassified realtime provider errors are classified or eliminated.
  • The daily improvements report can distinguish harmless teardown from user-visible realtime/PTT failure.

Activity

  1. added
    bug
    p1
    on Jul 3, 2026
  2. added a commit that references this issue on Jul 3, 2026
    76eb69f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    analyticsaudiobugdesktopmacOSp1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions