"Always allow" for directory access not persisted to settings
Resolved 💬 3 comments Opened Jan 11, 2026 by r00k Closed Feb 25, 2026
Description
When prompted to allow access to a directory outside the project (e.g., accessing ~/.claude from a project in ~/.dotfiles), selecting "always allow" does not persist the permission.
Expected behavior
Clicking "always allow" should add the directory to additionalDirectories in .claude/settings.json or .claude/settings.local.json.
Actual behavior
The permission is granted for the current session but not saved. The user is prompted again in future sessions.
Steps to reproduce
- Open Claude Code in a project directory (e.g.,
~/.dotfiles) - Perform an action that requires reading/writing to a directory outside the project (e.g.,
~/.claude) - When prompted, select "always allow"
- Start a new session
- Perform the same action - you'll be prompted again
Workaround
Manually add additionalDirectories to settings:
{
"permissions": {
"additionalDirectories": ["~/.claude"]
}
}
Environment
- macOS
- Claude Code (CLI)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗