Claude now seems to forget that we allow "Do you trust the files in this folder?"

Status Closed — not planned
Maintainer reply ✓ Yes — wolffiex
Activity 11 comments · opened Jun 16, 2025 · closed Jan 7, 2026
💡 Likely answer: A maintainer (wolffiex, collaborator) responded on this thread — see the highlighted reply below.

Every time that i start a new claude session in a previously approved folder, it will always ask to trust the folder. Is it possible to either fix this, or allow some mechanism to disable, or whitelist some folders?

View original on GitHub ↗

11 Comments

wolffiex collaborator · 1 year ago

Do you also get the prompt to set your theme? If so, we are mistakenly failing to load your settings. If not, we'll need to debug some more.

balheru · 1 year ago

I do not have the theme situation going on. any debug logs I can give to you? ( it would be cool to permanently set some configs for this )

balheru · 1 year ago

After a bit of messing around:

  • in the home folder "/Users/balheru" if i reconnect to a session it does not ask me for permissions if i previously approved
  • in the home folder if i start a new session, it will ask me for permissions, regardless if i approve before
  • in any other folder if i approve once it never asks me again.
JDaance · 1 year ago

Yeah would like to know how to fix this for the home folder, often launch claude there when I just want to do some random things

duckSquirrelPilot · 1 year ago

I didn't have this issue before, but this has now become a reoccurring issue in v1.0.81 (I believe the first version this happened at was v1.0.77). For me, this only happens in subdirectories of my github root directory. For some reason, it does remember to trust the root directory project.

KoharaKazuya · 1 year ago

I suspect the reproduction steps here might be related to running claude inside a subdirectory (not at the Git repository root) combined with using statusline.

For example, my setup looks like this:

/  # Root of the Git repository
├── .git/
└── sub/  # Run the `claude` command in this directory
    └── .claude/
        └── settings.json

When I launch claude inside sub/, together with statusline, I can reproduce the issue. Could this be the actual cause?

settings.json:

{
  "statusLine": {
    "type": "command",
    "command": "echo statusline"
  }
}
CGamesPlay · 1 year ago

Not using statusLine, but I am using a subdirectory of my git repository, and I get this prompt on every Claude launch. Mine looks like this:

/  # Root of the Git repository
├── .git/
└── sub/actually/a/few  # Run the `claude` command in this directory
    └── .claude/
        └── settings.local.json

My settings.local.json:

{
  "permissions": {
    "allow": [
      "Bash(bundle exec rspec:*)",
      "Bash(bundle exec rails:*)"
    ],
    "deny": []
  },
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|MultiEdit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "./.claude/format-file.sh"
          }
        ]
      }
    ]
  }
}
teito-dev · 11 months ago

Facing the same issue on linux, its not asking me everytime on launch if i trust a folder unless i explicitly have a claude.md in that dir

github-actions[bot] · 8 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] · 7 months ago

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] · 7 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.