Skip to content

[codex] Hide direct OpenAI settings option#49

Open
Farhan (fkb032) wants to merge 1 commit intomainfrom
fkb/visualize-config
Open

[codex] Hide direct OpenAI settings option#49
Farhan (fkb032) wants to merge 1 commit intomainfrom
fkb/visualize-config

Conversation

@fkb032
Copy link
Copy Markdown
Contributor

Summary

  • hide the direct OpenAI API key card from Settings -> API Keys
  • relabel the shared cloud provider option from OpenAI / OpenRouter to OpenRouter
  • clarify in Settings that legacy saved direct OpenAI keys still work as hidden fallback
  • fix the ai-models-tab subscription cleanup while touching the same surface

Why

We no longer want to advertise direct OpenAI as a normal first-class path in the main UI, but we also do not want this PR to do a broader provider refactor. This keeps the visible settings surface OpenRouter-first while preserving the existing backend/store fallback behavior.

Known Limitation

Users with only a legacy saved direct OpenAI key are still in an intermediate state until #38 lands: the UI now says OpenRouter, but backend fallback can still route them to direct OpenAI and the model list is still driven by the OpenRouter catalog.

Reviewer Note

The return subscription change in ai-models-tab.tsx is intentional. Claude review verified that form.store.subscribe(...) returns the unsubscribe function directly, so the previous .unsubscribe() cleanup path was incorrect.

Test Plan

  • bunx oxlint apps/native/src/components/widget/settings/api-keys-tab.tsx apps/native/src/components/widget/settings-dialog.tsx apps/native/src/components/widget/settings/ai-models-tab.tsx
  • bun run --cwd apps/native build (still fails on pre-existing unrelated TypeScript/dependency issues in kibo-ui/monaco files; no remaining errors in the touched settings files)

Docs

  • No docs update needed
  • Docs updated

@github-actions
Copy link
Copy Markdown

Warnings
⚠️ Please assign this PR to someone (usually yourself).

📋 PR Overview

Lines changed 129 (+29 / -100)
Files 0 added, 3 modified, 0 deleted
Draft / WIP no
Has Test Plan yes
New UI components no
New Storybook stories no
New Rust modules no
New TS source files no
New tests no
package.json touched no
Cargo.toml touched no
Infra / CI touched no

Generated by 🚫 dangerJS against f20ab69

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.

1 participant