Skip to content

fix(server): preserve provider settings after upgrades - #9

Merged
Zain-Repo merged 3 commits into
mainfrom
codex/pr-8176-provider-history
Sep 1, 2026
Merged

fix(server): preserve provider settings after upgrades#9
Zain-Repo merged 3 commits into
mainfrom
codex/pr-8176-provider-history

Conversation

@Zain-Repo

Copy link
Copy Markdown
Owner

Summary

Restore optional providers and provider instances from persisted usage history so upgrades do not hide configurations that users have already used.

Validation

  • Server settings tests: 19 passed
  • Server typecheck passed

Upstream reference: pingdotgg/t3code#8176

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L labels Sep 1, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T18:20:37.415007Z 90bbe61 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Zain-Repo

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0530757498

ℹ️ 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".

Comment on lines +232 to +233
persisted.providers?.cursor?.enabled ??
(usedProviders.has("cursor") ? true : settings.providers.cursor.enabled),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Don't enable the default provider from custom-instance history

When the history contains only a custom Cursor instance such as cursor_work, usedProviders.has("cursor") still enables the legacy providers.cursor entry. deriveProviderInstanceConfigMap then synthesizes a separate default cursor instance alongside cursor_work, so an upgrade unexpectedly exposes two enabled providers and can even resurrect the default after the custom instance was removed but its thread history remains. Only history whose instance ID is null or equals the provider name should restore the legacy default; custom-instance history should restore that instance alone.

Useful? React with 👍 / 👎.

@Zain-Repo

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 90bbe6126f

ℹ️ 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".

@Zain-Repo
Zain-Repo merged commit d291f37 into main Sep 1, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant