mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-04 14:39:23 +00:00
Keep flow method progress visible for nested crews (#6295)
Inline crews default to `verbose=False`. They set the shared formatter's `verbose` value in `lib/crewai/src/crewai/crew.py`, which could hide flow method status from `lib/crewai/src/crewai/events/utils/ console_formatter.py`. Remove that `verbose` check for flow method status. Flow output is still controlled by `suppress_flow_events`. Normal quiet crews are unchanged because crew, task, and agent logs still use their own `verbose` checks.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user