From 1ad93992c7efe05a14f797b9f6f891ec3154eb8d Mon Sep 17 00:00:00 2001 From: Alexander Ng Date: Thu, 19 Mar 2026 22:30:42 -0700 Subject: [PATCH] [agent] fix(web): include Claude models in git text generation model picker The text generation model dropdown in Settings only listed Codex models. With Claude now a first-class provider, users should be able to select Claude models for auto-generated commit messages, PR titles, and branch names. This change merges both Codex and Claude model lists (with dedup) into the git text generation model picker. > This code was generated by AI (Claude Code). Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/web/src/routes/_chat.settings.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/web/src/routes/_chat.settings.tsx b/apps/web/src/routes/_chat.settings.tsx index f3dee29096..1c2ea24205 100644 --- a/apps/web/src/routes/_chat.settings.tsx +++ b/apps/web/src/routes/_chat.settings.tsx @@ -126,11 +126,13 @@ function SettingsRouteView() { const keybindingsConfigPath = serverConfigQuery.data?.keybindingsConfigPath ?? null; const availableEditors = serverConfigQuery.data?.availableEditors; - const gitTextGenerationModelOptions = getAppModelOptions( - "codex", - settings.customCodexModels, - settings.textGenerationModel, - ); + const gitTextGenerationModelOptions = (() => { + const codexOptions = getAppModelOptions("codex", settings.customCodexModels, settings.textGenerationModel); + const seen = new Set(codexOptions.map((o) => o.slug)); + const claudeOptions = getAppModelOptions("claudeAgent", settings.customClaudeModels, settings.textGenerationModel) + .filter((o) => !seen.has(o.slug)); + return [...codexOptions, ...claudeOptions]; + })(); const selectedGitTextGenerationModelLabel = gitTextGenerationModelOptions.find( (option) =>