diff --git a/lib/crewai/src/crewai/events/utils/console_formatter.py b/lib/crewai/src/crewai/events/utils/console_formatter.py index fdecf93cf..604c7b051 100644 --- a/lib/crewai/src/crewai/events/utils/console_formatter.py +++ b/lib/crewai/src/crewai/events/utils/console_formatter.py @@ -373,9 +373,6 @@ To enable tracing, do any one of these: status: str = "running", ) -> None: """Show method status panel.""" - if not self.verbose: - return - if status == "running": style = "yellow" panel_title = "🔄 Flow Method Running" diff --git a/lib/crewai/tests/utilities/test_console_formatter_pause_resume.py b/lib/crewai/tests/utilities/test_console_formatter_pause_resume.py index 0adb43d83..1ffbb3850 100644 --- a/lib/crewai/tests/utilities/test_console_formatter_pause_resume.py +++ b/lib/crewai/tests/utilities/test_console_formatter_pause_resume.py @@ -46,6 +46,16 @@ class TestConsoleFormatterPauseResume: formatter.resume_live_updates() + def test_flow_method_status_ignores_formatter_verbose(self): + formatter = ConsoleFormatter(verbose=False) + + with patch.object(formatter, "print_panel") as mock_print_panel: + formatter.handle_method_status("categorize_tickets") + + mock_print_panel.assert_called_once() + _, kwargs = mock_print_panel.call_args + assert kwargs["is_flow"] is True + def test_streaming_after_pause_resume_creates_new_session(self): """Test that streaming after pause/resume creates new Live session.""" formatter = ConsoleFormatter()