-
{typeInfo?.icon}
+ {getProviderIconUrl(selectedType!) ? (
+
})
+ ) : (
+
{typeInfo?.icon}
+ )}
{typeInfo?.name}
);
}
diff --git a/src/pages/Setup/index.tsx b/src/pages/Setup/index.tsx
index 594665e4c..5cb44b427 100644
--- a/src/pages/Setup/index.tsx
+++ b/src/pages/Setup/index.tsx
@@ -101,7 +101,7 @@ const defaultSkills: DefaultSkill[] = [
{ id: 'terminal', name: 'Terminal', description: 'Shell command execution' },
];
-import { SETUP_PROVIDERS, type ProviderTypeInfo } from '@/lib/providers';
+import { SETUP_PROVIDERS, type ProviderTypeInfo, getProviderIconUrl, shouldInvertInDark } from '@/lib/providers';
// Use the shared provider registry for setup providers
const providers = SETUP_PROVIDERS;
@@ -1454,7 +1454,7 @@ function CompleteContent({ selectedProvider, installedSkills }: CompleteContentP
{t('complete.provider')}
- {providerData ? `${providerData.icon} ${providerData.name}` : '—'}
+ {providerData ? {getProviderIconUrl(providerData.id) ?
: providerData.icon} {providerData.name} : '—'}
diff --git a/src/pages/Skills/index.tsx b/src/pages/Skills/index.tsx
index 5c861933b..eada6b69e 100644
--- a/src/pages/Skills/index.tsx
+++ b/src/pages/Skills/index.tsx
@@ -615,6 +615,8 @@ export function Skills() {
}
}, [enableSkill, disableSkill, t]);
+ const hasInstalledSkills = skills.some(s => !s.isBundled);
+
const handleOpenSkillsFolder = useCallback(async () => {
try {
const skillsDir = await window.electron.ipcRenderer.invoke('openclaw:getSkillsDir') as string;
@@ -623,7 +625,12 @@ export function Skills() {
}
const result = await window.electron.ipcRenderer.invoke('shell:openPath', skillsDir) as string;
if (result) {
- throw new Error(result);
+ // shell.openPath returns an error string if the path doesn't exist
+ if (result.toLowerCase().includes('no such file') || result.toLowerCase().includes('not found') || result.toLowerCase().includes('failed to open')) {
+ toast.error(t('toast.failedFolderNotFound'));
+ } else {
+ throw new Error(result);
+ }
}
} catch (err) {
toast.error(t('toast.failedOpenFolder') + ': ' + String(err));
@@ -702,10 +709,12 @@ export function Skills() {
{t('refresh')}
-
-
- {t('openFolder')}
-
+ {hasInstalledSkills && (
+
+
+ {t('openFolder')}
+
+ )}