From b5aa764c3d21fb0849b2c0102f46400c93fba5ee Mon Sep 17 00:00:00 2001 From: Jakub Czajka Date: Sun, 22 Nov 2026 14:50:54 +0000 Subject: [PATCH] [ai] Base worktrees on origin instead of HEAD. With baseRef "head", a new worktree branches from the local HEAD. If the local HEAD is unborn or cannot be read, git worktree add has no commit to branch from and worktree creation deadlocks. Use "fresh" so new worktrees branch from origin's default branch, which is present even when the local HEAD is not. --- .claude/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.claude/settings.json b/.claude/settings.json index 099447f..d186f44 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -4,7 +4,7 @@ "PROFILE": "nonfree" }, "worktree": { - "baseRef": "head" + "baseRef": "fresh" }, "statusLine": { "type": "command", -- 2.47.3