Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apps/desktop-tauri/src-tauri/src/commands/bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,9 +557,16 @@ impl From<Settings> for SettingsSnapshot {
}

pub(crate) fn provider_catalog_for(settings: &Settings) -> Vec<ProviderCatalogEntry> {
// Soft-removed providers (upstream #2254) stay hidden in Settings unless already enabled.
settings
.provider_display_order()
.into_iter()
.filter(|provider| {
!provider.is_deprecated()
|| settings
.enabled_providers
.contains(provider.cli_name())
})
.map(|provider| ProviderCatalogEntry {
id: provider.cli_name().to_string(),
display_name: provider.display_name().to_string(),
Expand Down
17 changes: 12 additions & 5 deletions apps/desktop-tauri/src-tauri/src/commands/provider_settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,18 @@ pub(crate) fn build_provider_summaries(settings: &Settings) -> Vec<ProviderSumma
.iter()
.enumerate()
.filter_map(|(idx, id)| {
by_id.get(id).map(|p| ProviderSummary {
id: id.clone(),
display_name: p.display_name().to_string(),
enabled: settings.enabled_providers.contains(id),
order: idx as u32,
by_id.get(id).and_then(|p| {
let enabled = settings.enabled_providers.contains(id);
// Soft-removed providers (upstream #2254) stay hidden unless already enabled.
if p.is_deprecated() && !enabled {
return None;
}
Some(ProviderSummary {
id: id.clone(),
display_name: p.display_name().to_string(),
enabled,
order: idx as u32,
})
})
})
.collect()
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions apps/desktop-tauri/src/components/providers/providerIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import crossmodel from "./icons/ProviderIcon-crossmodel.svg?raw";
import cursor from "./icons/ProviderIcon-cursor.svg?raw";
import deepgram from "./icons/ProviderIcon-deepgram.svg?raw";
import deepinfra from "./icons/ProviderIcon-deepinfra.svg?raw";
import aiand from "./icons/ProviderIcon-aiand.svg?raw";
import clinepass from "./icons/ProviderIcon-clinepass.svg?raw";
import longcat from "./icons/ProviderIcon-longcat.svg?raw";
import neuralwatt from "./icons/ProviderIcon-neuralwatt.svg?raw";
Expand Down Expand Up @@ -95,6 +96,7 @@ const RAW: Record<string, string> = {
cursor: tint(cursor),
deepgram: tint(deepgram),
deepinfra: tint(deepinfra),
aiand: tint(aiand),
clinepass: tint(clinepass),
longcat: tint(longcat),
neuralwatt: tint(neuralwatt),
Expand Down Expand Up @@ -150,6 +152,7 @@ export const PROVIDER_ICON_REGISTRY: Record<string, ProviderIcon> = {
cursor: { id: "cursor", brandColor: "#00bfa5", fallbackLetter: "▸", svgPath: RAW.cursor },
deepgram: { id: "deepgram", brandColor: "#13ef93", fallbackLetter: "D", svgPath: RAW.deepgram },
deepinfra: { id: "deepinfra", brandColor: "#2a3275", fallbackLetter: "D", svgPath: RAW.deepinfra },
aiand: { id: "aiand", brandColor: "#e25c2b", fallbackLetter: "&", svgPath: RAW.aiand },
clinepass: { id: "clinepass", brandColor: "#61a3fa", fallbackLetter: "C", svgPath: RAW.clinepass },
longcat: { id: "longcat", brandColor: "#ffd100", fallbackLetter: "L", svgPath: RAW.longcat },
neuralwatt: { id: "neuralwatt", brandColor: "#38d98c", fallbackLetter: "N", svgPath: RAW.neuralwatt },
Expand Down Expand Up @@ -229,6 +232,9 @@ const ALIASES: Record<string, string> = {
"deep infra": "deepinfra",
"deep-infra": "deepinfra",
di: "deepinfra",
"ai&": "aiand",
"ai-and": "aiand",
"ai and": "aiand",
"zen-mux": "zenmux",
"cline-pass": "clinepass",
"long-cat": "longcat",
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop-tauri/src/surfaces/TrayPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import AgentSessions from "../components/AgentSessions";
const HAS_DASHBOARD = new Set([
"abacus", "alibaba", "alibabatokenplan", "amp", "augment",
"azureopenai", "bedrock", "claude", "codex", "codebuff",
"commandcode", "copilot", "crof", "crossmodel", "cursor", "deepgram", "deepinfra", "deepseek", "zenmux", "clinepass", "longcat", "neuralwatt",
"aiand", "commandcode", "copilot", "crof", "crossmodel", "cursor", "deepgram", "deepinfra", "deepseek", "zenmux", "clinepass", "longcat", "neuralwatt",
"doubao", "elevenlabs", "factory", "gemini", "grok", "groq",
"infini", "jetbrains", "kilo", "kimi", "kimik2", "kiro", "manus",
"mimo", "minimax", "mistral", "nanogpt", "ollama", "openaiapi",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ function providerSourceHintShort(
case "nanogpt":
case "warp":
case "deepinfra":
case "aiand":
case "zenmux":
case "clinepass":
case "neuralwatt":
Expand Down
5 changes: 3 additions & 2 deletions apps/desktop-tauri/src/test/providerCatalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const TEST_PROVIDER_CATALOG: Array<[string, string]> = [
["augment", "Augment"],
["opencode", "OpenCode"],
["kimi", "Kimi"],
["kimik2", "Kimi K2"],
["kimik2", "Kimi K2 (removed)"],
["amp", "Amp"],
["warp", "Warp"],
["ollama", "Ollama"],
Expand All @@ -34,6 +34,7 @@ export const TEST_PROVIDER_CATALOG: Array<[string, string]> = [
["codebuff", "Codebuff"],
["deepseek", "DeepSeek"],
["deepinfra", "DeepInfra"],
["aiand", "ai&"],
["zenmux", "ZenMux"],
["clinepass", "ClinePass"],
["longcat", "LongCat"],
Expand All @@ -57,7 +58,7 @@ export const TEST_PROVIDER_CATALOG: Array<[string, string]> = [
["poe", "Poe"],
["devin", "Devin"],
["zed", "Zed"],
["crossmodel", "CrossModel"],
["crossmodel", "CrossModel (removed)"],
["qoder", "Qoder"],
["sakana", "Sakana AI"],
["sub2api", "sub2api"],
Expand Down
1 change: 1 addition & 0 deletions apps/desktop-tauri/src/types/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export type ProofProviderId =
| "codebuff"
| "deepseek"
| "deepinfra"
| "aiand"
| "zenmux"
| "clinepass"
| "longcat"
Expand Down
Loading
Loading