Skip to content

fix(core): expand home-relative permission paths - #35737

Merged
StarpTech merged 4 commits into
devfrom
home-permission-paths
Jul 7, 2026
Merged

StarpTech merged 4 commits into
devfrom
home-permission-paths

Conversation

@StarpTech

@StarpTech StarpTech commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

This fixes a V2 regression where home-relative filesystem permission paths stopped matching resolved absolute paths.

Summary

  • Restore V1 behavior for configs like external_directory: { "~/p/**": "allow" }, so paths under the user home no longer prompt.
  • Support ~ and $HOME path rules on POSIX and Windows for global and per-agent permissions.
  • Keep bash rules like $HOME/private/** literal so deny rules still match raw commands, and leave $HOMELESS unchanged.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor needs:compliance This means the issue will auto-close after 2 hours. needs:issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant