mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-09-23 03:11:05 +00:00
fix(cli): crewai eval — Enter accepts the offer to run the crew (y/n, Y default; the prompt names both effects)
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user