Skip to content

fix: point investigate/review error hints at entire agent add - #2292

Open
suhaanthayyil wants to merge 1 commit into
mainfrom
fix/2249-stale-configure-agent-hints
Open

fix: point investigate/review error hints at entire agent add#2292
suhaanthayyil wants to merge 1 commit into
mainfrom
fix/2249-stale-configure-agent-hints

Conversation

@suhaanthayyil

@suhaanthayyil suhaanthayyil commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

https://entire.io/gh/entireio/cli/trails/1242

Summary

  • `entire investigate`/`entire review` error messages told users to run a nonexistent `entire configure --agent ` flag. Replaced all 11 instances across 5 files with the correct `entire agent add `.

Evidence

  • Repo-wide grep before/after: 11 lines / 17 substring occurrences of `configure --agent` in production code → 0.
  • 8 tests added/extended, each calling the real error-producing function (not a hardcoded string comparison) and asserting the message names `entire agent add` and never the stale flag.
  • Proved the tests have teeth: reverted one line back to the stale string and reran — test fails as expected, restored and passes.

Test plan

  • `go test -race ./cmd/entire/cli/investigate/... ./cmd/entire/cli/review/...` — all green.
  • `mise run fmt` clean, `mise run lint` — 0 issues.

Fixes #2249

…nt add`

Error and status messages in `entire investigate` and `entire review`
told users to run `entire configure --agent <name>`, a flag that does
not exist. Agent setup lives under `entire agent add <name>`; update
every hint to match and extend the corresponding tests to assert on
the real message text.

Fixes #2249
@suhaanthayyil
suhaanthayyil requested a review from a team as a code owner September 7, 2026 03:18
Copilot AI lite review requested due to automatic review settings September 7, 2026 03:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The investigate error hints can still suggest an invalid entire agent add invocation (notably around the gemini-cli naming), which would mislead users into running a command that fails.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates entire investigate and entire review user-facing error hints to point to the correct agent-install command (entire agent add ...) instead of a nonexistent entire configure --agent ..., and adds/extends tests to ensure the updated hints are emitted by the real code paths.

Changes:

  • Replaced stale entire configure --agent ... guidance with entire agent add ... across investigate/review error surfaces.
  • Added/extended tests that exercise the real entry points and assert the hint contains entire agent add (and not configure --agent).
File summaries
File Description
cmd/entire/cli/review/profile.go Updates “no agents installed” error hint to use entire agent add ....
cmd/entire/cli/review/picker.go Updates guided-setup and picker errors to use entire agent add ....
cmd/entire/cli/review/picker_test.go Adds coverage asserting the updated hint is produced by RunReviewProfileConfigPicker.
cmd/entire/cli/review/picker_internal_test.go Adds internal tests asserting updated hints for guided setup and default profile generation.
cmd/entire/cli/review/cmd.go Updates list/config/runtime error output to direct users to entire agent add ....
cmd/entire/cli/review/cmd_test.go Extends tests to assert entire agent add is present and configure --agent is absent.
cmd/entire/cli/investigate/picker.go Updates config-picker “no eligible agents” error hint to entire agent add ....
cmd/entire/cli/investigate/picker_test.go Extends test assertions to require entire agent add and reject configure --agent.
cmd/entire/cli/investigate/cmd.go Updates the “hooks not installed” hint to entire agent add ....
cmd/entire/cli/investigate/cmd_test.go Updates test expectations to require entire agent add and reject configure --agent.
Review details
  • Files reviewed: 10/10 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 871 to 873
if _, ok := installedSet[name]; !ok {
return fmt.Errorf("agent %q is not launchable (run `entire configure --agent %s` first)", name, name)
return fmt.Errorf("agent %q is not launchable (run `entire agent add %s` first)", name, name)
}
Comment on lines 142 to 146
return nil, errors.New(
"no launchable agents with hooks installed; " +
"run `entire configure --agent <name>` for one of: " +
"run `entire agent add <name>` for one of: " +
"claude-code, codex, gemini-cli",
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Stale entire configure --agent hints in investigate and review error messages

2 participants