Show 'None' when a mode has no tool groups (#3095)

This commit is contained in:
Matt Rubens 2025-05-01 13:09:08 -04:00 committed by GitHub
parent dc03cb75da
commit 026a3e1059
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 38 additions and 16 deletions

View file

@ -696,6 +696,12 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
{(() => {
const currentMode = getCurrentMode()
const enabledGroups = currentMode?.groups || []
// If there are no enabled groups, display translated "None"
if (enabledGroups.length === 0) {
return t("prompts:tools.noTools")
}
return enabledGroups
.map((group) => {
const groupName = getGroupName(group)

View file

@ -25,7 +25,8 @@
"browser": "Utilitzar navegador",
"command": "Executar comandes",
"mcp": "Utilitzar MCP"
}
},
"noTools": "Cap"
},
"roleDefinition": {
"title": "Definició de rol",

View file

@ -25,7 +25,8 @@
"browser": "Browser verwenden",
"command": "Befehle ausführen",
"mcp": "MCP verwenden"
}
},
"noTools": "Keine"
},
"roleDefinition": {
"title": "Rollendefinition",

View file

@ -25,7 +25,8 @@
"browser": "Use Browser",
"command": "Run Commands",
"mcp": "Use MCP"
}
},
"noTools": "None"
},
"roleDefinition": {
"title": "Role Definition",

View file

@ -25,7 +25,8 @@
"browser": "Usar navegador",
"command": "Ejecutar comandos",
"mcp": "Usar MCP"
}
},
"noTools": "Ninguna"
},
"roleDefinition": {
"title": "Definición de rol",

View file

@ -25,7 +25,8 @@
"browser": "Utiliser le navigateur",
"command": "Exécuter des commandes",
"mcp": "Utiliser MCP"
}
},
"noTools": "Aucun"
},
"roleDefinition": {
"title": "Définition du rôle",

View file

@ -25,7 +25,8 @@
"browser": "ब्राउज़र का उपयोग करें",
"command": "कमांड्स चलाएँ",
"mcp": "MCP का उपयोग करें"
}
},
"noTools": "कोई नहीं"
},
"roleDefinition": {
"title": "भूमिका परिभाषा",

View file

@ -25,7 +25,8 @@
"browser": "Usa browser",
"command": "Esegui comandi",
"mcp": "Usa MCP"
}
},
"noTools": "Nessuno"
},
"roleDefinition": {
"title": "Definizione del ruolo",

View file

@ -25,7 +25,8 @@
"browser": "ブラウザを使用",
"command": "コマンドを実行",
"mcp": "MCP を使用"
}
},
"noTools": "なし"
},
"roleDefinition": {
"title": "役割の定義",

View file

@ -25,7 +25,8 @@
"browser": "브라우저 사용",
"command": "명령 실행",
"mcp": "MCP 사용"
}
},
"noTools": "없음"
},
"roleDefinition": {
"title": "역할 정의",

View file

@ -25,7 +25,8 @@
"browser": "Używaj przeglądarki",
"command": "Uruchamiaj polecenia",
"mcp": "Używaj MCP"
}
},
"noTools": "Brak"
},
"roleDefinition": {
"title": "Definicja roli",

View file

@ -25,7 +25,8 @@
"browser": "Usar navegador",
"command": "Executar comandos",
"mcp": "Usar MCP"
}
},
"noTools": "Nenhuma"
},
"roleDefinition": {
"title": "Definição de função",

View file

@ -25,7 +25,8 @@
"browser": "Использовать браузер",
"command": "Выполнять команды",
"mcp": "Использовать MCP"
}
},
"noTools": "Отсутствуют"
},
"roleDefinition": {
"title": "Определение роли",

View file

@ -25,7 +25,8 @@
"browser": "Tarayıcı Kullan",
"command": "Komutları Çalıştır",
"mcp": "MCP Kullan"
}
},
"noTools": "Yok"
},
"roleDefinition": {
"title": "Rol Tanımı",

View file

@ -25,7 +25,8 @@
"browser": "Sử dụng trình duyệt",
"command": "Chạy lệnh",
"mcp": "Sử dụng MCP"
}
},
"noTools": "Không có"
},
"roleDefinition": {
"title": "Định nghĩa vai trò",

View file

@ -25,7 +25,8 @@
"browser": "浏览器",
"command": "运行命令",
"mcp": "MCP服务"
}
},
"noTools": "无"
},
"roleDefinition": {
"title": "角色定义",

View file

@ -25,7 +25,8 @@
"browser": "使用瀏覽器",
"command": "執行命令",
"mcp": "使用 MCP"
}
},
"noTools": "無"
},
"roleDefinition": {
"title": "角色定義",