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(team): remove default swarmflow enablement

min_gitcodeb38e14e63be8
diff --git a/jiuwenswarm/agents/harness/team/config_loader.py b/jiuwenswarm/agents/harness/team/config_loader.py
index ba8d500928..b63305aa84 100644
--- a/jiuwenswarm/agents/harness/team/config_loader.py
+++ b/jiuwenswarm/agents/harness/team/config_loader.py
@@ -389,7 +389,6 @@ def load_team_spec_dict(
spec_dict["teammate_mode"] = team_raw.get("teammate_mode", "build_mode")
spec_dict["spawn_mode"] = team_raw.get("spawn_mode", "inprocess")
spec_dict["enable_hitt"] = team_raw.get("enable_hitt", True)
- spec_dict["enable_swarmflow"] = team_raw.get("enable_swarmflow", True)
spec_dict["enable_permissions"] = _resolve_enable_permissions(config_base, team_raw)
spec_dict["leader"] = _build_leader_spec(team_raw)
spec_dict["agents"] = agents
diff --git a/jiuwenswarm/resources/config.yaml b/jiuwenswarm/resources/config.yaml
index 00b9ce7f58..29517af092 100644
--- a/jiuwenswarm/resources/config.yaml
+++ b/jiuwenswarm/resources/config.yaml
@@ -1015,7 +1015,6 @@ modes:
lifecycle: persistent
teammate_mode: build_mode
spawn_mode: inprocess
- enable_swarmflow: true
# Team-specific permission control.
enable_permissions: false
diff --git a/tests/unit_tests/agentserver/test_team_config_loader.py b/tests/unit_tests/agentserver/test_team_config_loader.py
index 6e5947b3ec..98f063d89a 100644
--- a/tests/unit_tests/agentserver/test_team_config_loader.py
+++ b/tests/unit_tests/agentserver/test_team_config_loader.py
@@ -4,6 +4,7 @@
from pathlib import Path
+import pytest
import yaml
from jiuwenswarm.common.config import resolve_env_vars
@@ -349,6 +350,7 @@ def test_load_team_spec_dict_preserves_explicit_enable_hitt_false(monkeypatch, t
assert spec["enable_hitt"] is False
[email protected](reason="enable_swarmflow default injection has been removed")
def test_load_team_spec_dict_defaults_enable_swarmflow_to_true(monkeypatch, tmp_path):
"""Missing enable_swarmflow should default to enabled for team mode."""
config = {
@@ -387,6 +389,7 @@ def test_load_team_spec_dict_defaults_enable_swarmflow_to_true(monkeypatch, tmp_
assert spec["enable_swarmflow"] is True
[email protected](reason="enable_swarmflow loader behavior is no longer validated")
def test_load_team_spec_dict_preserves_explicit_enable_swarmflow_false(monkeypatch, tmp_path):
"""Explicit enable_swarmflow false should not be overwritten by defaults."""
config = {