Skip to content

fix(setup): omit manual connectors from automatic selection - #8009

Merged
morluto merged 1 commit into
morluto:mainfrom
dark13b:fix/setup-auto-manual-connectors
Nov 3, 2026
Merged

morluto merged 1 commit into
morluto:mainfrom
dark13b:fix/setup-auto-manual-connectors

Conversation

@dark13b

@dark13b dark13b commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #7522

rea setup --all-detected selected a client whose connector can only be registered by hand, then exited 1 with needs_human.

Problem and expected behavior

With an isolated home that contains only Grok Bot's detection directory, setup --all-detected --yes --json installed the shared skill but returned needs_human and exit 1. The caller did not ask for Grok Bot. Setup selected it anyway, reported its registration as manual, and gave hosted-connector instructions that local setup cannot perform. Rerunning gave the same result. Removing the detection directory made the same command return ready. A marker-only home with --skill=false failed too. Expected: automatic selection skips clients that cannot be registered locally, and an explicit request for such a client still gets its manual instructions.

Change and scope

In discoverSetupState (src/application/SetupPlan.ts), detectedClientIds is built from the detected clients whose format is not unsupported. The full discovery facts are kept, so detected manual connectors still appear in the plan. Explicit selection is unchanged, and an explicit selection added to the automatic one is still unioned.

Related: PR #7792 is about disclosing manual steps for an explicit selection. It does not cover automatic client selection.

Follow the contribution scope. Ordinary fix within existing boundaries; no maintainer scope decision is needed.

Contract and boundary impact

  • Semantic owner and earliest changed stage: discoverSetupState in src/application/SetupPlan.ts.
  • Contribution scope fit and linked maintainer decision: ordinary fix within existing boundaries; not applicable.
  • CLI and MCP/tool-catalog contract: setup --all-detected no longer picks manual-only connectors, so a home with only such a client behaves like an empty home. Explicit --client selection is unchanged.
  • Provider, bridge, target-format, or platform compatibility: none.

Expected effects:

  • Change process memory, registers, files, or configuration. (Setup writes client configuration; this change makes it write less in the affected case.)

Evidence and regression coverage

  • Tests added or updated: src/application/Setup.planning.test.ts (source cases for automatic and manual mixtures), tests/acceptance/setup/automaticClientSetup.test.ts (public CLI in isolated homes: marker-only, skill disabled, empty home, explicit Grok, mixed selection) and tests/acceptance/setup/repeatedClientSetup.test.ts.
  • Base reproduction or other evidence: five source regression cases returned needs_human for automatic and manual mixtures on the base revision.
  • Remaining proof gaps: npm run verify:package could not finish on Windows because creating a file symlink in scripts/verify-package-environment.mjs returns EPERM. npm pack --dry-run passed. src/setupEnvironment.test.ts:73 fails on a Windows slash-versus-backslash assertion with and without this change.

Validation performed

  • Focused run of five test files, eight of them public CLI acceptance tests — 68 passed
  • Final source-only run after a typing correction — 60 passed
  • npm run check:fast, test discovery, formatting, and the pre-commit and pre-push hooks — passed
  • npm pack --dry-run — passed

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Package or release metadata impact: none.

Author readiness

Human owner: @dark13b

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Retain detected manual connectors and explicit selection while excluding unsupported formats from automatic setup readiness. Fixes morluto#7522.
@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

setup --all-detected now skips manual-only connectors when choosing clients automatically, while keeping their detection facts.

  • Automatic setup skips clients that need manual registration.

Reviews (1) · Last reviewed commit: "fix(setup): omit manual connectors from ..." · Reviewed by Greptile

@dark13b
dark13b marked this pull request as ready for review October 29, 2026 07:44
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-29T07:44:11.572772Z
We couldn’t complete this review. Comment @codex review to try again.
1c5fcfe Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@morluto
morluto merged commit 53fca98 into morluto:main Nov 3, 2026
45 of 46 checks passed
@morluto morluto added area: setup Setup, packaging, upgrade, install, Doctor, and client registration bug Something isn't working labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: setup Setup, packaging, upgrade, install, Doctor, and client registration bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Automatic setup selects Grok Bot even though its connector requires manual registration

2 participants