Skip to content

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

Merged
leoisadev1 merged 2 commits into
mainfrom
fix/text-generation-fallback
Sep 10, 2026
Merged

leoisadev1 merged 2 commits into
mainfrom
fix/text-generation-fallback

Conversation

@leoisadev1

Copy link
Copy Markdown
Member

Problem

fallbackTextGenerationProvider read only the legacy settings.providers map when the configured text generation selection was disabled. The Providers UI writes providerInstances only, so that map decodes to schema defaults where Codex is enabled and listed first. Disabling Codex in Settings still sent every title, branch name, commit message, and PR request to Codex.

Fix

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.

This is an Akeru adaptation of upstream T3 Code work. All five providers keep the same fallback order.

Upstream

Verification

  • vp test run apps/server/src/serverSettings.test.ts — 41 passed
  • Targeted lint — clean

Model

Grok 4.6 High in Grok Build via Orca.

…lback

Disabling Codex in Settings still sent titles, branch names, and commit
copy to Codex because fallback only read the legacy providers map, which
decodes to schema defaults with Codex enabled.

The fallback now checks the providerInstances entry first, matching
isModelSelectionProviderEnabled, and only uses the legacy map when there
is no instance.

Upstream: pingdotgg#10346

Grok 4.6 High in Grok Build via Orca.
@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
akeru-bot-landing Skipped Skipped Sep 10, 2026 6:28pm UTC

Request Review

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XS labels Sep 10, 2026
@greptile-apps

greptile-apps Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Greptile Summary

Summary

  • Text-generation fallback selection now honors the enabled state of configured provider instances before consulting legacy provider defaults.
  • The regression coverage confirms that when the Codex instance is disabled, fallback selects Claude Agent.
  • No actionable issues remain.

Confidence Score: 5/5

Safe to merge.

There are no outstanding findings.

Reviews (2): Last reviewed commit: "Merge branch 'main' into fix/text-genera..." | Re-trigger Greptile

@leoisadev1
leoisadev1 merged commit 75af524 into main Sep 10, 2026
11 checks passed
@leoisadev1
leoisadev1 deleted the fix/text-generation-fallback branch September 10, 2026 23:22
This was referenced Sep 11, 2026

This branch was successfully deployed

1 active deployment
Preview — d82df5f7 Deployed Sep 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 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