Skip to content

fix: allow worktree directories under Global.Path.data#1607

Open
Ivaloz wants to merge 1 commit into
XiaomiMiMo:mainfrom
Ivaloz:fix/1507-v2
Open

fix: allow worktree directories under Global.Path.data#1607
Ivaloz wants to merge 1 commit into
XiaomiMiMo:mainfrom
Ivaloz:fix/1507-v2

Conversation

@Ivaloz

@Ivaloz Ivaloz commented Jul 7, 2026

Copy link
Copy Markdown

Fixes #1504 - Allow worktree directories under Global.Path.data

Worktrees are stored at Global.Path.data/worktree//, not under the project working directory. The server middleware auth check was rejecting worktree paths.

This fix adds Global.Path.data as an allowed directory alongside the orchestrator path.

Previous PR #1507 had merge conflicts, this is a clean rebase onto upstream/main.

Worktrees are stored at Global.Path.data/worktree/<projectId>/, not
under the project working directory. The server middleware auth check
was rejecting worktree paths. Add Global.Path.data as an allowed
directory alongside the orchestrator path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/worktree 命令创建 worktree 时返回 403 "Access denied"

1 participant