Skip to content

fix(setup): disclose manual connector steps before approval - #7792

Closed
HeadmasterEggy wants to merge 2 commits into
morluto:mainfrom
HeadmasterEggy:codex/setup-manual-disclosure
Closed

HeadmasterEggy wants to merge 2 commits into
morluto:mainfrom
HeadmasterEggy:codex/setup-manual-disclosure

Conversation

@HeadmasterEggy

@HeadmasterEggy HeadmasterEggy commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #7692. Interactive setup --client grok_bot previously disclosed its known hosted-connector requirement only after approving and installing the local skill.

  INSTALL REA reverse-engineering skill
+ Grok Bot's hosted connector must be added manually, with the existing completion instructions.
  Apply this change?

Pass the application's already-computed manual remediation through SetupConfirmationContext and render it before the approval question. The CLI consumes the owner's fact without looking up clients again. The installation guide now explains the disclosure.

Contract and scope

  • Owner: the setup workflow computes manual remediation after resolving selected clients; the interactive adapter displays it.
  • Ordinary usability correction within existing authority; a separate maintainer scope decision is not applicable.
  • The selected actions, approval requirement, skill installation, absence of a local Grok Bot connector write, structured plan and final needs_human outcome retain their contracts. No new installation, provider capability or generated metadata.
  • Documentation or usability only; no target interaction.

Evidence

  • Before: replayed the report against upstream 60bad9ed0 with isolated homes and a fake configured Hopper launcher. The public CLI installed the skill after approval, but the manual requirement was absent before the question. The JSON dry-run control already contained it and wrote nothing.
  • Before production edits, the new workflow and real-PTY public CLI regressions failed in all four approval/cancellation cases; the remaining 46 tests passed.
  • After: 50/50 tests passed across src/application/Setup.planning.test.ts and tests/boundary/cli/cliSetup.test.ts, run with npm run test:focused -- and those paths.
  • The real-PTY public CLI cases check the owning manual guidance before the question, then approve or cancel: approval writes the skill and exits 1 for the remaining manual step; cancellation exits 0 and leaves the skill absent. Workflow cases independently check no writes before confirmation and no local connector configuration.
  • Repeated the report's public CLI and JSON controls: manual guidance appears before approval, and dry-run remains planned with only install_skill, the same remediation and no write.
  • npm run check:fast, npm run docs:check (including 9 README tests), changed-file Oxfmt and git diff --check: passed. Focused CLI tests rebuilt the required runtime and skill artifacts.

Executed on macOS with Node 24.22.1 / npm 11.16.0. The PTY fixtures use a fake Hopper launcher and refusing package runners; they do not verify real provider operation, a hosted Grok Bot account, or external software installation. The new shell-fixture PTY cases skip Windows; Linux execution was not performed locally. Initial Linux CI exposed a fixture defect: the shell launcher failed the Linux ldd probe and setup consequently proposed an extra Hopper install; neither test approved it. The fixture now supplies an inert successful ldd. The production Linux executable-probe boundary was exercised on macOS with both failing and passing dependency-probe controls; this is simulated platform evidence, not a native Linux run. Repeated the 50 focused tests and check:fast: passed. Remote CI passed on current head e44a36138be645d0d7136860b2165f10506687eb: run 40692781945. Static/source checks, all eight test shards, build/docs, Linux x64/arm64 and macOS arm64 native baselines, the Windows capability/package lane, portable tests and CI required passed. The formerly failing Linux setup cases are in the successful shard run. Unrelated provider lanes were skipped. Greptile's current-head review is 5/5 with no blocking findings; human author readiness remains pending.

Merge Danger

Door: two-way

Blast Radius: narrow

One existing manual-completion message is additionally displayed before interactive approval.

Author readiness

Human owner: @HeadmasterEggy

  • 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.

@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The reviewed changes appear safe to merge, with no blocking findings.

Summary

The PR shows the existing manual connector instructions before interactive setup asks for approval.

  • Interactive setup shows Grok Bot’s manual connector step before approval.

Reviews (2) · Last reviewed commit: "test(setup): admit inert launcher in Lin..." · Reviewed by Greptile

gensokyo-dev added a commit that referenced this pull request Nov 14, 2026
N0zoM1z0 pushed a commit that referenced this pull request Nov 14, 2026
@N0zoM1z0

Copy link
Copy Markdown
Collaborator

Thank you for this fix. It landed in #10519 with your authorship kept on the commit (adapted where noted in the PR), so I'm closing this PR as superseded.

@N0zoM1z0 N0zoM1z0 closed this Nov 14, 2026
@morluto morluto added area: setup Setup, packaging, upgrade, install, Doctor, and client registration bug Something isn't working labels Nov 23, 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] Grok Bot setup reveals its required manual connector step only after interactive approval

3 participants