Skip to content

Commit 4a01ae2

Browse files
committed
fix(plans): write plansDirectory to settings.local.json instead of settings.json
Avoids modifying the committed settings.json file — local settings belong in settings.local.json which is gitignored.
1 parent c87cb0d commit 4a01ae2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

electron/ipc/plans.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ interface PlanWatcher {
1111
const watchers = new Map<string, PlanWatcher>();
1212

1313
/**
14-
* Reads and merges `.claude/settings.json` in the worktree to set
14+
* Reads and merges `.claude/settings.local.json` in the worktree to set
1515
* `plansDirectory: "./.claude/plans"`. Creates the plans dir if needed.
1616
* No-op if already set.
1717
*/
1818
export function ensurePlansDirectory(worktreePath: string): void {
19-
const settingsPath = path.join(worktreePath, '.claude', 'settings.json');
19+
const settingsPath = path.join(worktreePath, '.claude', 'settings.local.json');
2020
const plansDir = path.join(worktreePath, '.claude', 'plans');
2121

2222
let settings: Record<string, unknown> = {};

0 commit comments

Comments
 (0)