Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): skip disabled provider instances for text generation fallback #10346

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/10346/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

fallbackTextGenerationProvider reads only the legacy settings.providers map when the configured text generation selection is disabled. The Providers UI writes providerInstances only, so that legacy map decodes to schema defaults, where codex is enabled and listed first. Disabling codex in Settings therefore still sent every thread title, branch name, commit message, and PR content request to codex, which failed when the CLI was not installed.

The fallback now checks the providerInstances entry for each driver first, with the same precedence isModelSelectionProviderEnabled already uses, and only reads the legacy providers map when there is no instance entry. One test covers the report: a disabled codex instance with no legacy providers key falls back to claudeAgent.

Closes #7533

Extracted from #10121.

Written by Claude Fable 5.1 in Claude Code.

Note

Add regression test for skipping disabled provider instances in text-generation fallback

Adds an effect test in serverSettings.test.ts that loads settings with a disabled codex provider instance and asserts fallback selection picks claudeAgent instead. The test covers the interaction between providerInstances persistence and legacy provider defaults.

Macroscope summarized fabf15b.
    1. Bugbot is paused — on-demand spend limit reached

      Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

      A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    3. Approvability

      Verdict: Approved at fabf15b

      Macroscope's review found this PR approvable — This is a narrowly scoped server bug fix that makes text-generation fallback honor an explicitly disabled provider instance while preserving legacy behavior when no instance override exists. It includes focused regression coverage and does not alter product defaults, schemas, deployment, or sensitive areas.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire13.6 KiB13.5 KiB−28 B (−0.2%)15.1 KiB✅
      CodexThread snapshot wire7.0 KiB7.0 KiB+2 B (+0.0%)7.3 KiB✅
      CodexLive turn WebSocket wire6.5 KiB6.5 KiB−30 B (−0.4%)7.8 KiB✅
      CodexLive turn WebSocket decoded57.1 KiB57.0 KiB−88 B (−0.2%)66.4 KiB✅
      CodexLive turn messages108−2 (−20.0%)21✅
      ClaudeTotal thread wire13.5 KiB13.5 KiB+24 B (+0.2%)15.1 KiB✅
      ClaudeThread snapshot wire7.0 KiB7.0 KiB−2 B (−0.0%)7.3 KiB✅
      ClaudeLive turn WebSocket wire6.5 KiB6.5 KiB+26 B (+0.4%)7.8 KiB✅
      ClaudeLive turn WebSocket decoded57.8 KiB57.8 KiB0 B (0.0%)66.4 KiB✅
      ClaudeLive turn messages880 (0.0%)21✅

      Baseline: eb8ed80 · PR result: fabf15b · Source CI: success

      Scenario and decoded snapshot size

      10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

      • Codex decoded thread snapshot: 113.8 KiB
      • Claude decoded thread snapshot: 114.5 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

Sign in to join this conversation.