Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
Fixed (#2481)
Brandon Hancock (bhancock_ai)e1b83942650d
diff --git a/src/crewai/utilities/events/utils/console_formatter.py b/src/crewai/utilities/events/utils/console_formatter.pyindex 3d3e03149..618238ec3 100644--- a/src/crewai/utilities/events/utils/console_formatter.py+++ b/src/crewai/utilities/events/utils/console_formatter.py@@ -507,9 +507,10 @@ class ConsoleFormatter:# Remove the thinking status node when completeif "Thinking" in str(tool_branch.label):- agent_branch.children.remove(tool_branch)- self.print(crew_tree)- self.print()+ if tool_branch in agent_branch.children:+ agent_branch.children.remove(tool_branch)+ self.print(crew_tree)+ self.print()def handle_llm_call_failed(self, tool_branch: Optional[Tree], error: str, crew_tree: Optional[Tree]@@ -587,6 +588,7 @@ class ConsoleFormatter:for child in flow_tree.children:if "Running tests" in str(child.label):child.label = Text("✅ Tests completed successfully", style="green")+ breakself.print(flow_tree)self.print()