claude-code - 💡(How to fix) Fix [BUG] Folder trust prompt reappears on every session despite previously accepting [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#50858Fetched 2026-04-20 12:11:06
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

Error Messages/Logs

Code Example

Actual behavior: Prompt shown on every launch.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

The "Is this a project you created or one you trust?" safety prompt appears every time Claude Code is launched, even after selecting "Yes, I trust this folder" in a previous session.

What Should Happen?

Expected behavior: Trust decision persists across sessions for the same directory.

Error Messages/Logs

Actual behavior: Prompt shown on every launch.

Steps to Reproduce

Steps to reproduce:

  1. Launch Claude Code in C:\Users<username> (home directory, non-git repo)
  2. Select "Yes, I trust this folder"
  3. Close and relaunch Claude Code in the same directory
  4. Prompt appears again

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Environment: - OS: Windows 11 Home 10.0.26200 - Shell: bash (Git Bash) - Working directory: home directory (C:\Users\MikLe) — not a git repo - skipDangerousModePermissionPrompt: true is set in ~/.claude/settings.json - Project key C--Users-MikLe exists in ~/.claude/projects/

Claude Code Version

2.1.114 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can likely be resolved by ensuring that the trust decision is properly persisted across sessions, potentially by modifying the ~/.claude/settings.json file or the project settings.

Guidance

  • Verify that the skipDangerousModePermissionPrompt setting is being saved correctly in the ~/.claude/settings.json file after selecting "Yes, I trust this folder".
  • Check if the project key C--Users-MikLe exists in the ~/.claude/projects/ directory and if its settings are being loaded correctly.
  • Investigate if there are any issues with the Anthrop API or the Terminal.app (macOS) that could be causing the prompt to appear again.
  • Consider downgrading to a previous version of Claude Code (e.g., the last working version) to see if the issue persists.

Example

No code snippet is provided as the issue does not require a specific code change.

Notes

The issue seems to be related to the persistence of the trust decision across sessions, but the exact cause is unclear. Further investigation is needed to determine the root cause of the issue.

Recommendation

Apply workaround: Modify the ~/.claude/settings.json file to ensure that the trust decision is persisted across sessions, or try downgrading to a previous version of Claude Code. This is because the issue is likely related to a regression in the current version of Claude Code.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING