fix(provider-matching): normalize provider names to lowercase for connectivity checks

🤖 Generated with assistance of [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
YeonGyu-Kim
2026-02-21 03:33:20 +09:00
parent b9442f51da
commit fb4530cafe
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -123,9 +123,9 @@ export function selectFallbackProvider(
): string {
const connectedProviders = readConnectedProvidersCache()
if (connectedProviders) {
const connectedSet = new Set(connectedProviders)
const connectedSet = new Set(connectedProviders.map(p => p.toLowerCase()))
for (const provider of providers) {
if (connectedSet.has(provider)) {
if (connectedSet.has(provider.toLowerCase())) {
return provider
}
}