Auto-select Detected Agents in Enable Flow · Entire

What I changed

The entire enable first‑run flow had a shortcut: when exactly one built‑in agent was detected, it auto‑selected it and skipped the picker entirely — so you couldn't add more agents without re‑running. (The multi‑agent case already showed the picker with detected agents pre‑checked.)

I removed that early‑return so a single detected agent now falls through to the same multi‑select form, where it's already pre‑selected via the existing preSelectedSet → hookAgentOptions → opt.Selected(true) machinery. You see the detected agent checked and can just hit enter, or tick more first.

cmd/entire/cli/setup.go (detectOrSelectAgent):

cmd/entire/cli/setup_test.go:

Applied (2 cleanups)

  1. Trimmed the history-narrating comment (setup.go, single-detected-agent case) — dropped the "Previously a lone built-in agent was used automatically…" narration (belongs in git history) and kept the two load-bearing facts: it's pre-selected in the form below, and --yes skips the announcement. 6 lines → 4.
  2. Fixed the now-inconsistent re-run doc bullet — my diff added a "(when a TTY is available)" caveat + non-interactive sub-bullet to the first-run bullets, which made the adjacent re-run bullet's "Always shows the interactive multi-select" read as inaccurate (the no-TTY re-run path keeps installed agents without a picker). Added the matching TTY qualifier and non-interactive sub-bullet.

Skipped (with reasons)

The core change itself was validated as the right altitude (special-case shortcut removed in favor of the shared picker, with the per-path difference now expressed as data via preSelectedSet). mise run fmt, mise run lint, and the detectOrSelectAgent tests all pass.

Review target:

— continue: collect altitude + simplification review findings, apply fixes

You are improving the quality of the changed code, not hunting for bugs. Review it for reuse, simplification, efficiency, and altitude issues, then fix what you find. Do not look for correctness bugs — that is what /code-review is for.