Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): respect disabled text generation providers #8821

ClosedMichel-Liao(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/8821/headopened View on GitHub

What Changed

  • Keep the existing legacy text-generation fallback order.
  • When a legacy fallback has an explicit instance at the same default ID, honor that instance's enabled state.
  • Add a regression covering disabled Codex alongside an unrelated enabled custom instance.

Why

The enabled check uses providerInstances, but the fallback scanned only the legacy providers map. Because that map defaults Codex to enabled, disabling the explicit Codex instance could immediately select Codex again for titles, branch names, commit messages, and PR content.

The fallback now mirrors registry hydration's same-ID precedence without selecting arbitrary configured instances that may not have registered successfully.

Closes #7533

Testing

  • vp test run apps/server/src/serverSettings.test.ts (32 tests)
  • vp run --filter t3 typecheck
  • vp lint apps/server/src/serverSettings.ts apps/server/src/serverSettings.test.ts
  • vp fmt --check apps/server/src/serverSettings.ts apps/server/src/serverSettings.test.ts
  • git diff --check

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • No UI code changed; screenshots and video are not applicable

Model: GPT-5.6 Sol Harness: Codex in T3 Code

    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: b42ffda4-f31c-48be-8ec8-b257f55ce55f

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      Warning

      Your free Security trial is over. An organization admin can activate Security or dismiss this notice.


      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

      Fix All in Cursor ❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the [Cursor dashboard](https://www.cursor.com/dashboard/bugbot).

      Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.

      Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit a2f8632fecd73212fee897a090f00052b889822d. Configure [here](https://www.cursor.com/dashboard/bugbot).
    4. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at 687c8bb

      Macroscope's review found this PR approvable — This is a focused server-side bug fix that makes fallback text generation honor an explicitly disabled provider instance. It changes no defaults, schemas, persistence formats, or unrelated runtime paths, and includes targeted regression coverage.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    5. Superseded by #10346, which already landed and closed #7533. Closing this PR as leftover hygiene.

    6. Superseded by #10346 (Closes #7533).

    7. juliusmarminge closed this

Sign in to join this conversation.