Repository navigation
fix(setup): omit manual connectors from automatic selection - #8009
Conversation
Retain detected manual connectors and explicit selection while excluding unsupported formats from automatic setup readiness. Fixes morluto#7522.
[Medium impact] The PR appears safe to merge; no actionable issues were found. Summary
Reviews (1) · Last reviewed commit: "fix(setup): omit manual connectors from ..." · Reviewed by Greptile |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Summary
Fixes #7522
rea setup --all-detectedselected a client whose connector can only be registered by hand, then exited 1 withneeds_human.Problem and expected behavior
With an isolated home that contains only Grok Bot's detection directory,
setup --all-detected --yes --jsoninstalled the shared skill but returnedneeds_humanand exit 1. The caller did not ask for Grok Bot. Setup selected it anyway, reported its registration asmanual, and gave hosted-connector instructions that local setup cannot perform. Rerunning gave the same result. Removing the detection directory made the same command returnready. A marker-only home with--skill=falsefailed 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),detectedClientIdsis built from the detected clients whoseformatis notunsupported. 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
discoverSetupStateinsrc/application/SetupPlan.ts.setup --all-detectedno longer picks manual-only connectors, so a home with only such a client behaves like an empty home. Explicit--clientselection is unchanged.Expected effects:
Evidence and regression coverage
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) andtests/acceptance/setup/repeatedClientSetup.test.ts.needs_humanfor automatic and manual mixtures on the base revision.npm run verify:packagecould not finish on Windows because creating a file symlink inscripts/verify-package-environment.mjsreturns EPERM.npm pack --dry-runpassed.src/setupEnvironment.test.ts:73fails on a Windows slash-versus-backslash assertion with and without this change.Validation performed
npm run check:fast, test discovery, formatting, and the pre-commit and pre-push hooks — passednpm pack --dry-run— passedCompatibility, safety, and release
Author readiness
Human owner: @dark13b