Repository navigation
fix(install): adopt after an install wires the project settings - #1248
Merged
Merged
Conversation
Out-of-place install.sh copied lib/, bin/, hooks/, and kit.toml into $CLAUDE_DIR/dwarves-kit/ but omitted root settings.json, causing the installed lib/adopt.sh to silently skip writing <repo>/.claude/settings.json. - Copy root settings.json into $CLAUDE_DIR/dwarves-kit/ on out-of-place installs, symlink it in plugin-compat mode, and remove only kit-deployed copies/symlinks on --uninstall. - Guard in-place/symlinked checkouts from overwriting or self-truncating kit.toml during install.sh. - Warn loudly on stderr in lib/adopt.sh when settings.json cannot be found on a non-plugin machine instead of skipping silently. - Add regression tests in tests/test-adopt.sh covering out-of-place install + adopt, missing settings.json warning, uninstall, in-place symlink checkout, and plugin installs.
- Add Verdict: RED line to the negative-control block in docs/verification/adopt-settings-after-install.md so VER-03 passes. - Fix all shellcheck -S warning findings across install.sh (remove dead KIT_MARKER, use literal tilde pattern in kit_mod_skip_dup, split local bak declaration), lib/adopt.sh (targeted SC2088 disable on intentional KIT_REF tilde, scope KIT_CONFIG_ROOT/KIT_PROJECT_ROOT inside command substitutions), and tests/test-adopt.sh (guard cd, targeted SC2088 disables, drop unused KFULL/E13, assert m2 mode). - Record master AGENTS.md hash (05221e8) in lib/adopt/agents-known.sha256 so tests/test-adopt.sh passes after rebase.
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.
What
adopt run from an out-of-place install now wires the consumer repo's .claude/settings.json, and says so on stderr when it cannot.
Demo
tests/test-adopt.sh 88/88; red on the old install.sh and lib/adopt.sh (81 pass, 7 fail).
Proof
docs/verification/adopt-settings-after-install.md
Bookkeeping
no-board-row: installer bug found by the outline audit; tracked on the owner's devkit move item