Repository navigation
fix(setup): name an unresolved client location in the picker - #11699
Conversation
[Low impact] The PR appears safe to merge; no new actionable issues were found. SummaryThe setup picker now shows each client's own location error, so users see the right recovery step instead of a generic hint.
No new actionable issues found. Tests were not run during this review. Reviews (3) · Last reviewed commit: "fix(setup): preserve client location rec..." · Reviewed by Greptile |
When a client's configuration location cannot be resolved, such as Claude Desktop with migrated Claude-Data storage, setup refuses to write it and the user has to register REA by hand. The client picker still said "Existing configuration needs repair before setup" (6.9.0, where the state is invalid) or "Detected · choose to configure" (main, where morluto#10698 records it as unknown), and neither is true. Show "Configuration location unresolved · register REA manually" for any client with a location error, and keep the repair hint for configurations that are actually malformed. Fixes morluto#11697
The journey fixtures used array paths and a marker field that setup never sends, and omitted registrationProfile. They now satisfy the production contract so the type checker rejects drift.
6a4d852 to
1c95d49
Compare
Codex Review Summary: ❌ FailedThis 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 #11697.
When setup cannot resolve a client's configuration location (for example Claude Desktop with migrated
Claude-Datastorage), it refuses to write that client and the user must register REA by hand. The interactive client picker did not say so. It now showsConfiguration location unresolved · register REA manuallyfor such a client, and keepsExisting configuration needs repair before setupfor configurations that are actually malformed.Problem and expected behavior
configPathErroris set, e.g.resolveWindowsClaudeDesktopLocationreturning "Found migrated Claude Desktop storage ... register REA manually in the active file".invalid, soclientHintshows "Existing configuration needs repair before setup". Nothing needs repair.unknown, soclientHintfalls through to "Detected · choose to configure". Setup still refuses to write that client, so this is also wrong.Change and scope
clientHintinsrc/cli/interactiveSetup.tschecksstate.client.configPathErrorbefore theinvalidstatus, so both paths above get the new hint. The resolver's full message is still reported where it was; the picker hint stays a short label, as the other hints are.Not included: the
unknownstatus has no hint of its own for other causes (for example an unresolved registration command identity); that is a separate question.SetupClientStateis unchanged.Follow the contribution scope.
Unresolved scope, authority, side effects, or required verification block
integration. Link the required maintainer scope decision for new providers or
capabilities involving target execution, injection, mutation, or protection
recovery; ordinary fixes within existing boundaries may state "not applicable".
Draft PRs may leave the scope decision pending and the readiness and merge checklists
unchecked. Maintainers can help resolve open questions.
Contract and boundary impact
configPathError; only the CLI picker's presentation (clientHint) changes.rea setuppicker hint text only. No JSON output, schema or MCP change.docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
tests/boundary/cli/cliSetup.test.ts, newinteractive setup client hintsdescribe. It drives the real picker in a pseudo-terminal with an unresolved Claude Desktop client in both theunknownandinvalidstates and asserts the new hint and the absence of the repair hint.runJourney's fourth parameter became an options object (initialClientIds,states) so the test can pass its own client states without a fifth parameter; the one existing caller is updated. The journey fixtures are typed asSetupClientState, so they now match what setup actually passes.src/cli/interactiveSetup.tsreverted to main anddistrecompiled, both new cases fail, and the picker rows readClaude Desktop (Detected · choose to configure)(unknown) andClaude Desktop (Existing configuration needs repair before setup)(invalid). With the change, both pass.◻ Claude Desktop (Configuration location unresolved · register REA manually).configPathErrorfor migrated storage is already covered bySetup.configuration.test.ts.Not a boundary fix: presentation only. For boundary fixes, identify the applicable boundary regressions
and lifecycle regressions
covered by the evidence above, and explain relevant gaps.
For evidence-bearing changes:
Validation performed
npm run compile, thennpx vitest run tests/boundary/cli/cliSetup.test.ts -t "interactive setup journey"and-t "11697"(Windows 11, Node 24.22.1): 11 journey tests and both new cases passed.src/cli/interactiveSetup.tsfrom main: 2 failed, with the hints quoted above.-t "interactive setup completion": 5 failed both on main and on this branch, because this checkout lacks the packaged Windows native addon (native/windows/build/manifest.json). Unrelated to this change; CI Linux runs them.npx oxlinton both files: clean. Pre-pushnpm run check:fast(typecheck, lint) and architecture guards: passed.Compatibility, safety, and release
Maintainer follow-up
The picker now uses the location resolver’s own recovery message for unresolved locations. Migrated Claude storage directs the user to manual registration, a malformed Pi location directs them to repair the override, and invalid configuration without a location error retains the existing repair message.
Three location-hint cases failed against the previous PR implementation and passed after the change. All 34 compiled setup CLI boundary tests passed, along with typecheck and changed-file formatting. The Windows Claude prompt was exercised with a controlled location result. No real Windows Claude installation was used.
Author readiness
Human owner: @Iyanuoluwa007
Before merge
type(scope): outcome.