Skip to content

Commit 8e1d06a

Browse files
committed
ucode run: don't print the single-model auto-launch note
When only one model is recommended, launch it silently instead of printing a note — the Model/Harness banner already shows what launched. Record the auto-launch in the debug log (UCODE_DEBUG=1) instead. Co-authored-by: Isaac
1 parent 51cf452 commit 8e1d06a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/ucode/cli.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
from ucode.agents.pi import PI_SETTINGS_BACKUP_PATH, PI_SETTINGS_PATH
3333
from ucode.config_io import restore_file, set_dry_run
3434
from ucode.databricks import (
35+
_debug,
3536
apply_pat_environment,
3637
build_shared_base_urls,
3738
discover_claude_models,
@@ -1101,8 +1102,10 @@ def _run_session(ctx: typer.Context, skip_preflight: bool = False) -> None:
11011102
print_section("ucode")
11021103
if len(recommended) == 1:
11031104
# Only one model recommended — no point prompting; launch it directly.
1105+
# Keep the console quiet (the Model/Harness banner below still shows
1106+
# what launched); note it only in the debug log.
11041107
chosen = recommended[0]
1105-
print_note(f"Only one recommended modellaunching {chosen}.")
1108+
_debug("recommend", f"single recommended model, auto-launching {chosen}")
11061109
else:
11071110
chosen = prompt_for_selection(
11081111
"Select a model", [(model, model) for model in recommended]

0 commit comments

Comments
 (0)