Repository navigation
fix(setup): name invalid client config shape errors clearly - #2157
Merged
morluto merged 3 commits intoOct 12, 2026
Merged
Conversation
Setup was dumping raw Zod issues for non-object roots or server tables, and uninstall always claimed the file was not valid JSON. Report the structural problem instead, and reserve parse failures for real syntax errors. Fixes morluto#2152 Co-authored-by: Cursor <[email protected]>
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. |
Keep descriptive shape errors while retaining Zod record validation and its own-property copy. Reject tagged YAML objects before setup or uninstall writes and prevent inherited JSONC properties from fabricating client registrations. Add production-boundary regressions for tagged YAML roots and server tables, plus inherited Cursor and OpenCode settings. All 91 focused tests, npm run check, verify:test-discovery, verify:package, and npm pack --dry-run passed.
Merge main while preserving its ZCode registration and dedicated configuration shape errors. Validate roots through the same record boundary as server tables, retain own-property semantics, and keep the merged setup/uninstall regressions. Validated with 130 focused tests, npm run check, verify:test-discovery, docs:check, verify:package, and npm pack --dry-run. Real provider applications were not exercised.
3 tasks done
morluto
added a commit
that referenced
this pull request
Oct 12, 2026
Report malformed Hermes and DeepSeek Harness documents as YAML. Carry the compiled setup/uninstall diagnostics coverage from #2153 onto the existing validation from #2157, including unchanged files and no backup writes. Add malformed YAML scenarios for both clients. Validation: 174 focused tests, npm run check, test discovery, package verification, and npm pack --dry-run. Co-authored-by: Jax367 <[email protected]>
6 tasks done
Owner
|
@BeqaKs, thanks for separating malformed configuration syntax from valid documents with the wrong root or server-table shape. Naming the structural error consistently across client formats gives setup and uninstall clearer feedback than raw schema output or a generic “invalid JSON” claim. Welcome to REA! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Setup was dumping raw Zod issues for non-object roots or server tables, and uninstall always claimed the file was not valid JSON. Report the structural problem instead, and reserve parse failures for real syntax errors.
Fixes #2152
Summary
Problem and expected behavior
Change and scope
Contract and boundary impact
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):Evidence and regression coverage
For evidence-bearing changes:
Validation performed
command— resultCompatibility, safety, and release
Review checklist
type(scope): outcome.