The tracing prompt was appearing for first-time users even when they
explicitly set CREWAI_TRACING_ENABLED=false or tracing=False. This was
because should_auto_collect_first_time_traces() didn't check if the user
had explicitly disabled tracing.
Changes:
- Modified should_auto_collect_first_time_traces() to return False when
CREWAI_TRACING_ENABLED=false, respecting the user's explicit configuration
- Added three new tests to verify the fix:
* test_no_tracing_prompt_when_explicitly_disabled
* test_no_trace_listener_when_tracing_disabled_and_first_time
* test_no_prompt_during_execution_when_tracing_disabled
- Updated existing tests that were incorrectly setting CREWAI_TRACING_ENABLED=false
while testing first-time user flow
Fixes#3789
Co-Authored-By: João <joao@crewai.com>