Repository navigation
chore(scripts): copy .claude/settings.local.json into worktrees - #1535
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
|
Deploy preview for adp-cost-calculator ready!
Deployed with vercel-action |
Contributor
|
Deploy preview for remote-flows ready!
Deployed with vercel-action |
Contributor
📊 Coverage Report⚪ Coverage unchanged
Detailed BreakdownLines Coverage
Statements Coverage
Functions Coverage
Branches Coverage
✅ Coverage check passed |
jordividaller
approved these changes
Oct 13, 2026
Merged
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.
Summary
npm run worktreenow also copies the main checkout's.claude/settings.local.jsoninto the new worktree.Why
That file holds personal, untracked Claude Code settings (permissions, hooks). A session started inside a worktree didn't get them, so local hooks and allowlists silently stopped applying there. The script already copies
CLAUDE.local.mdand the.env.*files for the same reason.What changed
Toggle details
scripts/create-worktree.ts: if.claude/settings.local.jsonexists in the main checkout, create.claude/in the worktree if needed and copy the file, loggingCopied .claude/settings.local.json. Nothing happens when the file is absent.Screenshots
N/A
Related Resources
N/A
Testing
example/app in a browser: N/A, dev script onlyCreated a worktree with the script and confirmed it runs. Lint reports no errors and
tsc --noEmitpasses.🤖 Generated with Claude Code
Note
Low Risk
Dev-only change to the worktree setup script; no runtime, API, or production impact.
Overview
Extends
npm run worktreeso new git worktrees inherit the main checkout’s local Claude Code config, not justCLAUDE.local.mdand.env.*files.When
.claude/settings.local.jsonexists in the repo root, the script creates.claude/in the worktree if needed, copies that file, and logs the action. If the file is missing, behavior is unchanged. Only affects newly created worktrees.Reviewed by Cursor Bugbot for commit feed8f0. Bugbot is set up for automated code reviews on this repo. Configure here.