Skip to content

Disable telemetry by default and add OAuth token refresh support#1

Open
achyut wants to merge 4 commits intomainfrom
feature/oauth-token-refresh
Open

Disable telemetry by default and add OAuth token refresh support#1
achyut wants to merge 4 commits intomainfrom
feature/oauth-token-refresh

Conversation

@achyut
Copy link
Owner

@achyut achyut commented Feb 9, 2026

Telemetry changes:

  • Remove Statsig endpoint URL and API key from otel crate
  • Default metrics_exporter to None instead of Statsig
  • Make analytics opt-in (require explicit analytics.enabled = true)
  • Remove default_analytics_enabled parameter and --analytics-default-enabled CLI flag
  • Update analytics tests to reflect opt-in behavior

OAuth changes:

  • Add OAuth token refresh support for custom model providers
  • Auto-refresh api-token header on background timer using configured refresh endpoint

External (non-OpenAI) Pull Request Requirements

Before opening this Pull Request, please read the dedicated "Contributing" markdown file or your PR may be closed:
https://github.com/openai/codex/blob/main/docs/contributing.md

If your PR conforms to our contribution guidelines, replace this text with a detailed and high quality description of your changes.

Include a link to a bug report or enhancement request.

achyutpaudelmedtronic and others added 4 commits February 9, 2026 15:51
Telemetry changes:
- Remove Statsig endpoint URL and API key from otel crate
- Default metrics_exporter to None instead of Statsig
- Make analytics opt-in (require explicit analytics.enabled = true)
- Remove default_analytics_enabled parameter and --analytics-default-enabled CLI flag
- Update analytics tests to reflect opt-in behavior

OAuth changes:
- Add OAuth token refresh support for custom model providers
- Auto-refresh api-token header on background timer using configured refresh endpoint

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

2 participants