fix(ui): improve agent panel empty state with discovery hints (#348)

Replace the unhelpful "POST /api/agents with X-Api-Key header" message
with a user-friendly hint explaining that agents are auto-discovered
from Claude, Codex, and Hermes directories, and that gateway mode shows
registered agents.

Adds missing noAgentsHint translation key across all 10 locales.

Closes #321
This commit is contained in:
nyk 2026-03-14 16:29:24 +07:00 committed by GitHub
parent 466a1621d4
commit 176e862431
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 10 additions and 1 deletions

View File

@ -1527,6 +1527,7 @@
"addAgent": "+ إضافة وكيل",
"refresh": "تحديث",
"noAgents": "لم يُعثر على وكلاء",
"noAgentsHint": "يتم اكتشاف الوكلاء المحليين تلقائيًا من أدلة Claude و Codex و Hermes. في وضع البوابة، سيظهر هنا أيضًا الوكلاء المسجلون في بوابة OpenClaw الخاصة بك.",
"addFirstAgent": "أضف وكيلك الأول للبدء",
"session": "الجلسة",
"totalTasks": "إجمالي المهام",

View File

@ -1527,6 +1527,7 @@
"addAgent": "+ Agent hinzufügen",
"refresh": "Aktualisieren",
"noAgents": "Keine Agenten gefunden",
"noAgentsHint": "Lokale Agenten werden automatisch aus den Claude-, Codex- und Hermes-Verzeichnissen erkannt. Im Gateway-Modus werden auch beim OpenClaw-Gateway registrierte Agenten hier angezeigt.",
"addFirstAgent": "Fügen Sie Ihren ersten Agenten hinzu, um zu beginnen",
"session": "Sitzung",
"totalTasks": "Aufgaben gesamt",

View File

@ -1527,6 +1527,7 @@
"addAgent": "+ Add Agent",
"refresh": "Refresh",
"noAgents": "No agents found",
"noAgentsHint": "Local agents are auto-discovered from Claude, Codex, and Hermes directories. In gateway mode, agents registered with your OpenClaw gateway will also appear here.",
"addFirstAgent": "Add your first agent to get started",
"session": "Session",
"totalTasks": "Total Tasks",

View File

@ -1527,6 +1527,7 @@
"addAgent": "+ Agregar agente",
"refresh": "Actualizar",
"noAgents": "No se encontraron agentes",
"noAgentsHint": "Los agentes locales se descubren automáticamente desde los directorios de Claude, Codex y Hermes. En modo gateway, los agentes registrados en tu gateway OpenClaw también aparecerán aquí.",
"addFirstAgent": "Agrega tu primer agente para comenzar",
"session": "Sesión",
"totalTasks": "Tareas totales",

View File

@ -1527,6 +1527,7 @@
"addAgent": "+ Ajouter un agent",
"refresh": "Actualiser",
"noAgents": "Aucun agent trouvé",
"noAgentsHint": "Les agents locaux sont découverts automatiquement depuis les répertoires Claude, Codex et Hermes. En mode passerelle, les agents enregistrés sur votre passerelle OpenClaw apparaîtront également ici.",
"addFirstAgent": "Ajoutez votre premier agent pour commencer",
"session": "Session",
"totalTasks": "Tâches totales",

View File

@ -1527,6 +1527,7 @@
"addAgent": "+ エージェントを追加",
"refresh": "更新",
"noAgents": "エージェントが見つかりません",
"noAgentsHint": "ローカルエージェントは Claude、Codex、Hermes のディレクトリから自動検出されます。ゲートウェイモードでは、OpenClaw ゲートウェイに登録されたエージェントもここに表示されます。",
"addFirstAgent": "最初のエージェントを追加して開始",
"session": "セッション",
"totalTasks": "タスク総数",

View File

@ -1527,6 +1527,7 @@
"addAgent": "+ 에이전트 추가",
"refresh": "새로 고침",
"noAgents": "에이전트를 찾을 수 없습니다",
"noAgentsHint": "로컬 에이전트는 Claude, Codex, Hermes 디렉토리에서 자동으로 검색됩니다. 게이트웨이 모드에서는 OpenClaw 게이트웨이에 등록된 에이전트도 여기에 표시됩니다.",
"addFirstAgent": "첫 번째 에이전트를 추가하여 시작하세요",
"session": "세션",
"totalTasks": "총 작업",

View File

@ -1527,6 +1527,7 @@
"addAgent": "+ Adicionar agente",
"refresh": "Atualizar",
"noAgents": "Nenhum agente encontrado",
"noAgentsHint": "Agentes locais são descobertos automaticamente dos diretórios Claude, Codex e Hermes. No modo gateway, agentes registrados no seu gateway OpenClaw também aparecerão aqui.",
"addFirstAgent": "Adicione seu primeiro agente para começar",
"session": "Sessão",
"totalTasks": "Total de tarefas",

View File

@ -1527,6 +1527,7 @@
"addAgent": "+ Добавить агента",
"refresh": "Обновить",
"noAgents": "Агенты не найдены",
"noAgentsHint": "Локальные агенты автоматически обнаруживаются из каталогов Claude, Codex и Hermes. В режиме шлюза здесь также будут отображаться агенты, зарегистрированные на вашем шлюзе OpenClaw.",
"addFirstAgent": "Добавьте первого агента для начала работы",
"session": "Сессия",
"totalTasks": "Всего задач",

View File

@ -1749,6 +1749,7 @@
"addAgent": "+ 添加代理",
"refresh": "刷新",
"noAgents": "未找到代理",
"noAgentsHint": "本地代理会从 Claude、Codex 和 Hermes 目录自动发现。在网关模式下,注册到 OpenClaw 网关的代理也会显示在此处。",
"addFirstAgent": "添加您的第一个代理以开始使用",
"session": "会话",
"totalTasks": "任务总数",

View File

@ -385,7 +385,6 @@ export function AgentSquadPanelPhase3() {
<p className="text-xs text-muted-foreground/70 mt-1 max-w-xs text-center">
{t('noAgentsHint')}
</p>
<p className="text-2xs text-muted-foreground/40 mt-3 font-mono">POST /api/agents with X-Api-Key header</p>
</div>
) : (
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">