JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix(skill): display local skills as installed
xiaotian07748deab5e4616
diff --git a/jiuwenswarm/channels/web/frontend/src/components/SkillPanel/index.tsx b/jiuwenswarm/channels/web/frontend/src/components/SkillPanel/index.tsxindex a4e6d62177..909e695f2c 100644--- a/jiuwenswarm/channels/web/frontend/src/components/SkillPanel/index.tsx+++ b/jiuwenswarm/channels/web/frontend/src/components/SkillPanel/index.tsx@@ -217,8 +217,9 @@ export function SkillPanel({ sessionId, onNavigateToConfig }: SkillPanelProps) {const visibleSkills = useMemo(() => {// 只显示已安装的技能(需手动安装后才会显示)+ // 本地/项目技能(source=local/project)不在 plugins 中,但已在 skills 目录下,属于已安装const installed = filteredSkills.filter((skill) =>- installedSkillMap.has(skill.name)+ installedSkillMap.has(skill.name) || skill.source === "local" || skill.source === "project");return [...installed].sort((a, b) => {const aSkillNet = a.source === "skillnet" ? 1 : 0;