From d849f9d7d12f0b817906c2ffb1d811d3f8df6a89 Mon Sep 17 00:00:00 2001 From: Joao Moura Date: Sun, 20 Sep 2026 13:54:00 -0700 Subject: [PATCH] =?UTF-8?q?fix(cli):=20crewai=20eval=20=E2=80=94=20Enter?= =?UTF-8?q?=20accepts=20the=20offer=20to=20run=20the=20crew=20(y/n,=20Y=20?= =?UTF-8?q?default;=20the=20prompt=20names=20both=20effects)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit João's call (2026-09-20): the confirm is y/n with Y as the default. The prompt still says tracing stays on in .env and that the crew runs now. Co-Authored-By: Claude Fable 5.1 --- lib/cli/src/crewai_cli/eval_crew.py | 2 +- lib/cli/tests/test_eval_crew.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli/src/crewai_cli/eval_crew.py b/lib/cli/src/crewai_cli/eval_crew.py index 78d36233e..d25453b6d 100644 --- a/lib/cli/src/crewai_cli/eval_crew.py +++ b/lib/cli/src/crewai_cli/eval_crew.py @@ -121,7 +121,7 @@ def _run_now_or_explain() -> str: if not click.confirm( f"No traced run is recorded in this project. Turn tracing on ({TRACING_ENV_VAR}=true " "stays in .env) and run the crew now?", - default=False, + default=True, # João, 2026-09-20: y/n with Y as the default — the prompt says what Enter does ): console.print(steps, style="yellow") raise SystemExit(0) diff --git a/lib/cli/tests/test_eval_crew.py b/lib/cli/tests/test_eval_crew.py index 0941594a0..8fc7e6430 100644 --- a/lib/cli/tests/test_eval_crew.py +++ b/lib/cli/tests/test_eval_crew.py @@ -319,7 +319,7 @@ def test_without_a_traced_run_it_offers_to_turn_tracing_on_and_run_the_crew(proj assert ran == ["run"] text, kwargs = prompts[0] - assert "CREWAI_TRACING_ENABLED=true stays in .env" in text and kwargs == {"default": False} # an explicit yes + assert "CREWAI_TRACING_ENABLED=true stays in .env" in text and kwargs == {"default": True} # Enter is yes (João's call); the prompt names both effects assert "CREWAI_TRACING_ENABLED=true" in (directory / ".env").read_text() assert amp.calls[0] == ("create", "fresh-run") assert "Tracing is on for this project" in capsys.readouterr().out