fix: resolve 7 init/re-init CLI bugs - #110
Merged
Merged
Conversation
- Ask user before removing old IDE files on IDE switch (default: keep) - Pre-select tools from existing manifest on re-init - Preserve existing MCP servers instead of deleting on re-init - Make testing-config.md population idempotent (no doubling) - Override testing array from user selection (vitest not forced) - Add env var wiring for non-VS Code MCP configs - Change Claude Code MCP path to .mcp.json per official docs
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.
Changes
Fixes 7 bugs in the
opencastle init/ re-init flow:mergeStackIntoRepoInfonow overrides testing array from user selection${VAR_NAME}env expansion for non-VS Code IDEs; offers to append missing.envvars.claude/mcp.jsonto.mcp.jsonper official Claude Code docsFiles changed
src/cli/init.ts— bugs 1, 2, 3, 6src/cli/bootstrap.ts— bug 4src/cli/detect.ts— bug 5src/cli/mcp.ts— bugs 6, 7src/cli/adapters/claude-code.ts— bug 7src/cli/init.test.ts— updated 3 assertions for.mcp.jsonpathTesting
All 1489 tests pass (45 test files).