Skip to content

[codex] Fix desktop realtime health telemetry - #8953

Merged
Git-on-my-level merged 1 commit into
mainfrom
codex/fix-realtime-health-8950
Jul 3, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
codex/fix-realtime-health-8950

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 3, 2026 •

Copy link
Copy Markdown
Member

Closes #8950.

Summary

  • fix Gemini realtime ephemeral token minting by sending Google Live API's documented authToken request wrapper instead of top-level token fields
  • move benign long-lived realtime idle teardown out of the failure-like realtime_provider_session_error bucket into realtime_provider_expected_idle_teardown
  • add stable realtime diagnostics dimensions for auth mode, failure class, HTTP status, and barge-in replacement mint failures so the daily health report can separate actual provider/session failures from lifecycle noise
  • add focused Swift and Rust regression coverage plus a desktop changelog fragment

Recently merged coverage

  • Fix desktop Gemini proxy timeout observability #8911 already addressed part of the broader July 3 Gemini picture by improving non-streaming Gemini proxy timeout observability and retryable timeout behavior.
  • That did not cover this issue's realtime health stream or /v2/realtime/session Gemini ephemeral-token mint path, which are fixed here.

Root cause

The Gemini realtime mint route posted uses, expireTime, and newSessionExpireTime at the top level. Google's current Live API CreateAuthTokenRequest requires those settings under authToken, so managed Gemini realtime users could fail before opening the provider session. Separately, expected Gemini idle closes were correctly classified locally but still emitted into the failure-like health event stream.

Testing

  • git diff --check
  • cargo test --manifest-path desktop/macos/Backend-Rust/Cargo.toml gemini_auth_token_body_wraps_settings_under_auth_token
  • xcrun swift test --package-path desktop/macos/Desktop --filter 'DesktopDiagnosticsManagerTests|RealtimeHubCloseClassifierTests'
  • scripts/pre-push

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 6 files

Confidence score: 5/5

  • In desktop/macos/changelog/unreleased/issue-8950-realtime-health.json, the trailing period is a formatting mismatch with changelog conventions; merging as-is won’t affect runtime behavior but can create avoidable inconsistency in release notes — remove the final period before merging (or in a quick follow-up).
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="desktop/macos/changelog/unreleased/issue-8950-realtime-health.json">

<violation number="1" location="desktop/macos/changelog/unreleased/issue-8950-realtime-health.json:1">
P3: The changelog entry ends with a period, but the project conventions specify "One sentence, no period at the end". Removing the trailing period keeps entries consistent with the documented format.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

@@ -0,0 +1,3 @@
{

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: The changelog entry ends with a period, but the project conventions specify "One sentence, no period at the end". Removing the trailing period keeps entries consistent with the documented format.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At desktop/macos/changelog/unreleased/issue-8950-realtime-health.json:

<comment>The changelog entry ends with a period, but the project conventions specify "One sentence, no period at the end". Removing the trailing period keeps entries consistent with the documented format.</comment>

<file context>
@@ -0,0 +1,3 @@
+{
+  "change": "Fixed Gemini realtime token minting and separated expected realtime idle closes from failure analytics."
+}
</file context>

@Git-on-my-level
Git-on-my-level merged commit 76eb69f into main Jul 3, 2026
3 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/fix-realtime-health-8950 branch July 3, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant