Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
fix(agents): stop the task board from replacing team-lead parameter forms
trohitg74e54e23c13a
diff --git a/server/nodes/agent/ai_employee/__init__.py b/server/nodes/agent/ai_employee/__init__.pyindex 180146a5..5432ceed 100644--- a/server/nodes/agent/ai_employee/__init__.py+++ b/server/nodes/agent/ai_employee/__init__.py@@ -1,5 +1,4 @@from .._handles import team_lead_agent_handles-from .._handles import STD_AGENT_HINTSfrom .._specialized import SpecializedAgentBase@@ -10,7 +9,11 @@ class AIEmployeeNode(SpecializedAgentBase):group = ("agent",)description = "Team lead for multi-agent coordination"handles = team_lead_agent_handles()- ui_hints = {**STD_AGENT_HINTS, "isTaskManagerPanel": True}+ # No isTaskManagerPanel here: the panel dispatch in MiddleSection is+ # exclusive, so the hint would replace the agent's parameter form+ # (prompt / provider / model) with the task board. The board lives on+ # the taskManager tool node connected to this lead's input-tools.+ # ui_hints inherits STD_AGENT_HINTS from SpecializedAgentBase.tool_description = ("ONE-SHOT delegation to AI Employee. Call ONCE per task, returns task_id. Coordinates multiple agents - do NOT re-call.")diff --git a/server/nodes/agent/orchestrator_agent/__init__.py b/server/nodes/agent/orchestrator_agent/__init__.pyindex 36519d3e..a3810ad8 100644--- a/server/nodes/agent/orchestrator_agent/__init__.py+++ b/server/nodes/agent/orchestrator_agent/__init__.py@@ -1,5 +1,4 @@from .._handles import team_lead_agent_handles-from .._handles import STD_AGENT_HINTSfrom .._specialized import SpecializedAgentBase@@ -10,7 +9,11 @@ class OrchestratorAgentNode(SpecializedAgentBase):group = ("agent",)description = "Team lead that delegates to connected specialized agents"handles = team_lead_agent_handles()- ui_hints = {**STD_AGENT_HINTS, "isTaskManagerPanel": True}+ # No isTaskManagerPanel here: the panel dispatch in MiddleSection is+ # exclusive, so the hint would replace the agent's parameter form+ # (prompt / provider / model) with the task board. The board lives on+ # the taskManager tool node connected to this lead's input-tools.+ # ui_hints inherits STD_AGENT_HINTS from SpecializedAgentBase.tool_description = ("ONE-SHOT delegation to Orchestrator Agent. Call ONCE per task, returns task_id. Coordinates multiple agents - do NOT re-call.")diff --git a/server/tests/test_node_spec.py b/server/tests/test_node_spec.pyindex 6841a2c1..ab05e255 100644--- a/server/tests/test_node_spec.py+++ b/server/tests/test_node_spec.py@@ -767,7 +767,12 @@ class TestUIHintsInNodeSpec:assert hints.get("hideInputSection") is Trueassert hints.get("hideOutputSection") is True- def test_task_manager_surfaces_span_the_full_parameter_panel(self):+ def test_task_manager_panel_is_exclusive_to_the_task_manager_node(self):+ """The MiddleSection dispatch is winner-takes-all: a node carrying+ isTaskManagerPanel renders the task board INSTEAD of its parameter+ form. That's correct for the taskManager tool node (no meaningful+ params) but must never leak onto the team leads — it would make+ their prompt / provider / model form unreachable in the UI."""hints = get_node_spec("taskManager").get("uiHints", {})assert hints.get("isTaskManagerPanel") is Trueassert hints.get("hideInputSection") is True@@ -775,7 +780,7 @@ class TestUIHintsInNodeSpec:for node_type in ("orchestrator_agent", "ai_employee"):lead_hints = get_node_spec(node_type).get("uiHints", {})- assert lead_hints.get("isTaskManagerPanel") is True+ assert lead_hints.get("isTaskManagerPanel") is not Trueassert lead_hints.get("hideInputSection") is not Trueassert lead_hints.get("hideOutputSection") is not True