test+ui: fix persistent main CI regressions (#63825)

This commit is contained in:
Mason
2026-04-10 00:00:57 +08:00
committed by GitHub
parent 06dea262c4
commit 2954c7235b
2 changed files with 1 additions and 8 deletions

View File

@@ -1141,7 +1141,7 @@ describe("createFollowupRunner messaging tool dedupe", () => {
agents: {
defaults: {
cliBackends: {
anthropic: {},
anthropic: { command: "anthropic" },
},
},
},

View File

@@ -276,13 +276,6 @@ export function buildChatModelOptionFromLookup(
displayLookup: ChatModelDisplayLookup,
): { value: string; label: string } {
const provider = entry.provider?.trim();
const value = (() => {
if (!provider) {
return entry.id;
}
const providerPrefix = `${provider.toLowerCase()}/`;
return entry.id.toLowerCase().startsWith(providerPrefix) ? entry.id : `${provider}/${entry.id}`;
})();
return {
value: buildQualifiedChatModelValue(entry.id, provider),
label: formatCatalogEntryDisplay(entry, displayLookup),