Skip to content

Reduce battery drain from OpenAI web extras#684

Merged
ratulsarna merged 20 commits intomainfrom
codex/pr-529-audit-20260409-152104
Apr 10, 2026
Merged

Reduce battery drain from OpenAI web extras#684
ratulsarna merged 20 commits intomainfrom
codex/pr-529-audit-20260409-152104

Conversation

@ratulsarna
Copy link
Copy Markdown
Collaborator

Supersedes #529.

Thanks to @cbrane for the original work here.

Summary

  • keeps OpenAI web extras off by default for new installs while preserving existing working setups on update
  • defaults OpenAI web battery saver to off
  • preserves state for enabled but temporarily unavailable providers during refresh
  • adds direct OpenAI web gate logging so the battery-saver behavior is easy to validate
  • updates tests and docs to match the current behavior

Validation

  • swiftformat Sources Tests
  • swiftlint --strict
  • pnpm check
  • ./Scripts/compile_and_run.sh

cbrane and others added 16 commits March 13, 2026 20:47
…issue

# Conflicts:
#	Sources/CodexBar/UsageStore.swift
…issue

# Conflicts:
#	Tests/CodexBarTests/OpenAIDashboardWebViewCacheTests.swift
#	Tests/CodexBarTests/ProviderSettingsDescriptorTests.swift
#	Tests/CodexBarTests/SettingsStoreTests.swift
#	Tests/CodexBarTests/StatusMenuTests.swift
#	Tests/CodexBarTests/UsageStoreCoverageTests.swift
…issue

# Conflicts:
#	Tests/CodexBarTests/ClaudeOAuthDelegatedRefreshCoordinatorTests.swift
…issue

# Conflicts:
#	Sources/CodexBar/UsageStore.swift
…issue

# Conflicts:
#	Sources/CodexBar/PreferencesProvidersPane+Testing.swift
#	Sources/CodexBar/PreferencesProvidersPane.swift
#	Sources/CodexBar/SettingsStore.swift
#	Sources/CodexBar/UsageStore+OpenAIWeb.swift
#	Sources/CodexBar/UsageStore.swift
#	Tests/CodexBarTests/OpenAIDashboardWebViewCacheTests.swift
#	Tests/CodexBarTests/ProvidersPaneCoverageTests.swift
…issue

# Conflicts:
#	Sources/CodexBar/StatusItemController+Menu.swift
#	Sources/CodexBar/UsageStore+OpenAIWeb.swift
#	Sources/CodexBarCore/OpenAIWeb/OpenAIDashboardWebViewCache.swift
…issue

# Conflicts:
#	Tests/CodexBarTests/ClaudeOAuthDelegatedRefreshCoordinatorTests.swift
#	Tests/CodexBarTests/ProvidersPaneCoverageTests.swift
@ratulsarna ratulsarna marked this pull request as ready for review April 10, 2026 12:17
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7b0dbfb67d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ratulsarna ratulsarna merged commit 0199e1c into main Apr 10, 2026
4 checks passed
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