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(agent-teams): we can retry when humanagentinbox request is failed as leader request

tangfei03061158899f8da3
diff --git a/jiuwenswarm/server/runtime/agent_adapter/team_helpers.py b/jiuwenswarm/server/runtime/agent_adapter/team_helpers.py
index e684d5c4d3..fb160bf16b 100644
--- a/jiuwenswarm/server/runtime/agent_adapter/team_helpers.py
+++ b/jiuwenswarm/server/runtime/agent_adapter/team_helpers.py
@@ -253,7 +253,7 @@ def _build_logical_targets(event: dict) -> list[dict]:
def _is_followup_delivery_boundary_reason(reason: str | None) -> bool:
"""Return whether follow-up delivery likely hit a runtime boundary."""
normalized = str(reason or "")
- if normalized in {"gate_closed", "not_active"}:
+ if normalized in {"agent_unavailable", "gate_closed", "not_active"}:
return True
return normalized.startswith("deliver_to_leader_failed:")