Skip to content

fix(setup): name an unresolved client location in the picker - #11699

Merged
morluto merged 3 commits into
morluto:mainfrom
Iyanuoluwa007:fix/setup-unresolved-location-hint
Nov 18, 2026
Merged

morluto merged 3 commits into
morluto:mainfrom
Iyanuoluwa007:fix/setup-unresolved-location-hint

Conversation

@Iyanuoluwa007

@Iyanuoluwa007 Iyanuoluwa007 commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #11697.

When setup cannot resolve a client's configuration location (for example Claude Desktop with migrated Claude-Data storage), it refuses to write that client and the user must register REA by hand. The interactive client picker did not say so. It now shows Configuration location unresolved · register REA manually for such a client, and keeps Existing configuration needs repair before setup for configurations that are actually malformed.

Problem and expected behavior

Change and scope

clientHint in src/cli/interactiveSetup.ts checks state.client.configPathError before the invalid status, 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 unknown status has no hint of its own for other causes (for example an unresolved registration command identity); that is a separate question. SetupClientState is 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

  • Semantic owner and earliest changed stage: the location resolvers set configPathError; only the CLI picker's presentation (clientHint) changes.
  • Contribution scope fit and linked maintainer decision: not applicable (presentation fix within existing setup boundaries).
  • CLI and MCP/tool-catalog contract: interactive rea setup picker hint text only. No JSON output, schema or MCP change.
  • Provider, bridge, target-format, or platform compatibility: none. Applies to any client with a location error on any platform.
  • Evidence, artifact, provenance, or reconstruction contract: none.
  • Target selection, authority, upstream behavior, and cleanup details (if applicable): not applicable. Setup still refuses to write an unresolved client, as before.
  • Generated metadata (docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs and skills/; 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.

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration.
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

Evidence and regression coverage

  • Tests added or updated: tests/boundary/cli/cliSetup.test.ts, new interactive setup client hints describe. It drives the real picker in a pseudo-terminal with an unresolved Claude Desktop client in both the unknown and invalid states 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 as SetupClientState, so they now match what setup actually passes.
  • Base reproduction or other evidence: executed. With src/cli/interactiveSetup.ts reverted to main and dist recompiled, both new cases fail, and the picker rows read Claude Desktop (Detected · choose to configure) (unknown) and Claude Desktop (Existing configuration needs repair before setup) (invalid). With the change, both pass.
  • User-visible CLI/MCP output (if applicable): picker row ◻ Claude Desktop (Configuration location unresolved · register REA manually).
  • Remaining proof gaps: not run against a real migrated Claude Desktop install; the test supplies the client state directly. The resolver path that sets configPathError for migrated storage is already covered by Setup.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:

  • Observed, derived, and inferred claims remain distinguishable.
  • Artifact identity, source provenance, and failed attempts remain preserved.
  • Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.

Validation performed

  • npm run compile, then npx 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.
  • Same new cases with src/cli/interactiveSetup.ts from 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 oxlint on both files: clean. Pre-push npm run check:fast (typecheck, lint) and architecture guards: passed.

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Real Hopper/Ghidra, browser, or OS coverage: Windows 11 pseudo-terminal run of the picker; no real Claude Desktop install.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: no write path changes; an unresolved client is still never written.

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

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

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

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

Summary

The setup picker now shows each client's own location error, so users see the right recovery step instead of a generic hint.

  • The setup picker shows a client’s location error as its 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

Comment thread tests/boundary/cli/cliSetup.test.ts Resolved
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.
@Iyanuoluwa007
Iyanuoluwa007 force-pushed the fix/setup-unresolved-location-hint branch from 6a4d852 to 1c95d49 Compare November 16, 2026 22:08
@Iyanuoluwa007
Iyanuoluwa007 marked this pull request as ready for review November 16, 2026 22:35
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T22:35:32.427760Z
We couldn’t complete this review. Comment @codex review to try again.
1c95d49 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.

Comment thread src/cli/interactiveSetup.ts Resolved
@morluto
morluto merged commit a43a1b6 into morluto:main Nov 18, 2026
43 of 45 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] setup labels migrated Claude Desktop storage "Existing configuration needs repair before setup", but there is nothing to repair

2 participants