Skip to content

Let git worktree grants clear the restricted-path guard - #502

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-5638-always-allow-for-git-worktree-keeps-re-prompting-on-later
Aug 22, 2026
Merged

Let git worktree grants clear the restricted-path guard#502
TheGreatAxios merged 1 commit into
mainfrom
cl-5638-always-allow-for-git-worktree-keeps-re-prompting-on-later

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

An Always-allow grant minted for git worktree * was never consulted for a later worktree command targeting an uncreated sibling directory: the pre-grant restricted-path guard forced an operator ask before grant matching ran, so the standing grant was silently ignored. Contained/permitted-sibling worktree add/remove destinations now skip that guard (reusing the same check auto mode already applies), letting a matching grant cover the request.

Fixes CL-5638

https://linear.app/abklabs/issue/CL-5638

A standing 'git worktree *' Always-allow grant was never consulted for a
later worktree command whose destination was an uncreated sibling
directory: the pre-grant restricted-path guard forced an operator ask
before grant matching ran. Exempt contained/permitted-sibling worktree
add/remove destinations from that guard, reusing the same check auto
mode already applies, so a matching grant can cover the request.
@linear-code

linear-code Bot commented Aug 22, 2026

Copy link
Copy Markdown

CL-5638

@TheGreatAxios
TheGreatAxios merged commit 311aec6 into main Aug 22, 2026
2 checks passed
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.

1 participant