diff --git a/src/crewai/utilities/events/utils/console_formatter.py b/src/crewai/utilities/events/utils/console_formatter.py index b008a58fb..72a02b2f7 100644 --- a/src/crewai/utilities/events/utils/console_formatter.py +++ b/src/crewai/utilities/events/utils/console_formatter.py @@ -591,13 +591,6 @@ class ConsoleFormatter: # Remove the thinking status node when complete if "Thinking" in str(tool_branch.label): - # Define branch_to_use here to fix the undefined name issue - branch_to_use = ( - self.current_lite_agent_branch - or agent_branch - or self.current_task_branch - ) - parents = [ self.current_lite_agent_branch, self.current_agent_branch,