Skip to content

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(web-frontend): Cannot save without adding a team

openJiuwen-botbf31bae3cfa2
diff --git a/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsx b/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsx
index ae074cdec0..2227c8cff2 100644
--- a/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsx
+++ b/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsx
@@ -2720,6 +2720,9 @@ export function ConfigPanel({
if (!agent.model.api_key.trim()) return true;
if (!agent.model.model.trim()) return true;
}
+ if (draftAgents.length > 0 && draftTeams.length === 0) {
+ return true;
+ }
for (const team of draftTeams) {
if (!team.team_name.trim()) return true;
if (!team.lifecycle?.trim()) return true;
diff --git a/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.json b/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.json
index 6e9fb4eee3..68b21b8eb9 100644
--- a/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.json
+++ b/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.json
@@ -635,7 +635,7 @@
"thirdParty": { "label": "Third-Party Services", "hint": "API key settings" },
"freeSearch": { "label": "Free Search Engines", "hint": "Enable free search engines" },
"evolution": { "label": "Evolution Settings", "hint": "Online skill evolution settings" },
- "agents": { "label": "Multi-Agent Configuration", "hint": "For cluster mode only" },
+ "agents": { "label": "Multi-Agent Configuration", "hint": "For cluster mode only, Team required" },
"team": { "label": "Team Configuration", "hint": "Multi-agent team settings" },
"contextEngine": { "label": "Context Compression", "hint": "Enable or disable dialogue context compression" },
"permissions": { "label": "Tool Safety Guardrail", "hint": "Enable or disable permission checks for tool calls" },
diff --git a/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.json b/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.json
index 2307e23b6f..8e29679c4d 100644
--- a/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.json
+++ b/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.json
@@ -634,7 +634,7 @@
"thirdParty": { "label": "第三方服务配置", "hint": "API Key 配置" },
"freeSearch": { "label": "免费搜索引擎配置", "hint": "控制免费搜索引擎启用" },
"evolution": { "label": "自演进配置", "hint": "Skills 在线自演进参数" },
- "agents": { "label": "多Agent配置", "hint": "仅供集群模式使用" },
+ "agents": { "label": "多Agent配置", "hint": "仅供集群模式使用,且必须添加Team" },
"team": { "label": "Team配置", "hint": "多智能体团队配置" },
"contextEngine": { "label": "上下文压缩", "hint": "控制对话上下文是否启用压缩" },
"permissions": { "label": "工具安全护栏", "hint": "控制工具调用时的权限检查" },