- Add stop_live() method to ConsoleFormatter to clean up Live sessions
- Call cleanup in FlowFinishedEvent and CrewKickoffCompletedEvent handlers
- Add comprehensive tests for Live session cleanup functionality
- Fixes issue #3136 where logging output was suppressed after CrewAI operations
The issue was that Rich Live sessions were not being explicitly stopped
when CrewAI flows or crews completed, leaving the terminal in a state
where subsequent logging output would be suppressed until process exit.
This fix ensures that Live sessions are properly cleaned up by:
1. Adding a stop_live() method that safely stops and clears Live sessions
2. Calling this cleanup method in the appropriate event handlers
3. Adding tests to prevent regression
Resolves#3136
Co-Authored-By: Jo\u00E3o <joao@crewai.com>
* Fix issue 2993: Prevent Flow status logs from hiding human input
- Add pause_live_updates() and resume_live_updates() methods to ConsoleFormatter
- Modify _ask_human_input() to pause Flow status updates during human input
- Add comprehensive tests for pause/resume functionality and integration
- Ensure Live session is properly managed during human input prompts
- Fix prevents Flow status logs from overwriting user input prompts
Fixes#2993
Co-Authored-By: João <joao@crewai.com>
* Fix lint: Remove unused pytest import
- Remove unused pytest import from test_console_formatter_pause_resume.py
- Fixes F401 lint error identified in CI
Co-Authored-By: João <joao@crewai.com>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: João <joao@crewai.com>