Skip to content

Hide ChatGPT usage link for non-OpenAI status#23127

Merged
etraut-openai merged 1 commit into
mainfrom
etraut/hide-chatgpt-usage-link-non-openai
May 18, 2026
Merged

Hide ChatGPT usage link for non-OpenAI status#23127
etraut-openai merged 1 commit into
mainfrom
etraut/hide-chatgpt-usage-link-non-openai

Conversation

@etraut-openai
Copy link
Copy Markdown
Collaborator

@etraut-openai etraut-openai commented May 17, 2026

Addresses #22778

Summary

Provider deployments such as Bedrock manage rate limits and billing outside ChatGPT, so the /status link to the ChatGPT usage page is irrelevant and confusing for those users. Custom providers that are explicitly configured to use OpenAI/ChatGPT auth still point at OpenAI-backed usage, so they should keep the link.

Changes

  • Render the ChatGPT usage note only when the configured provider uses OpenAI auth.
  • Keep the note hidden when /status displays a provider such as Bedrock that manages limits elsewhere.
  • Add regression coverage for both Bedrock and a custom OpenAI-auth proxy provider.

Manual Repro

  1. Configure Codex with a non-OpenAI-auth provider, for example model_provider = "amazon-bedrock".
  2. Start the TUI and run /status.
  3. Confirm the status card shows the custom provider, for example Model provider: Amazon Bedrock, and does not show https://chatgpt.com/codex/settings/usage.
  4. Configure a custom provider that proxies to OpenAI and has OpenAI/ChatGPT auth enabled.
  5. Run /status again and confirm the ChatGPT usage link appears for that OpenAI-auth provider.

@etraut-openai etraut-openai force-pushed the etraut/hide-chatgpt-usage-link-non-openai branch from 4176b37 to 50628d5 Compare May 17, 2026 08:18
@etraut-openai etraut-openai force-pushed the etraut/hide-chatgpt-usage-link-non-openai branch from 50628d5 to 8b4aee1 Compare May 17, 2026 08:23
Copy link
Copy Markdown
Contributor

@fcoury-oai fcoury-oai left a comment

Choose a reason for hiding this comment

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

Smoke tested. Code looks good.

@etraut-openai etraut-openai merged commit e734cb5 into main May 18, 2026
31 checks passed
@etraut-openai etraut-openai deleted the etraut/hide-chatgpt-usage-link-non-openai branch May 18, 2026 16:02
@github-actions github-actions Bot locked and limited conversation to collaborators May 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants