claude-code - 💡(How to fix) Fix [BUG] Trust prompt re-appears every session for home directory (C:\Users\<username>)

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…

Error Message

Error Messages/Logs

Fix Action

Fix / Workaround

Workaround: Manually select option 1 each session.

Code Example

Quick safety check: Is this a project you created or one you trust? (Like your own code, a well-known open source
   project, or work from your team). If not, take a moment to review what's in this folder first.

   Claude Code'll be able to read, edit, and execute files here.

   Security guide

   > 1. Yes, I trust this folder
     2. No, exit
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?

Body: Claude Code version: 2.1.114 OS: Windows 11 Pro

Behavior: When starting Claude Code with C:\Users\rdsta as the working directory (home folder), the "Quick safety check" trust prompt appears on every new session, even after selecting "Yes, I trust this folder."

Expected: Trust answer should persist across sessions, as it does for other project directories.

Workaround: Manually select option 1 each session.

What Should Happen?

the trust should persist

Error Messages/Logs

Quick safety check: Is this a project you created or one you trust? (Like your own code, a well-known open source
   project, or work from your team). If not, take a moment to review what's in this folder first.

   Claude Code'll be able to read, edit, and execute files here.

   Security guide

   > 1. Yes, I trust this folder
     2. No, exit

Steps to Reproduce

log in to claude from cmd prompt

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

unknown

Claude Code Version

2.1.114

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

No response

extent analysis

TL;DR

The trust prompt for the "Quick safety check" in Claude Code may not be persisting across sessions due to a potential issue with storing user preferences or trust settings for the specific working directory.

Guidance

  • Verify that the issue is specific to the C:\Users\rdsta directory by testing with other project directories to confirm if the trust setting persists in those cases.
  • Check if there are any configuration files or settings in the Claude Code application that could be influencing the persistence of trust settings for specific directories.
  • Consider testing an earlier version of Claude Code, if possible, to identify if this is a regression introduced in version 2.1.114.
  • Look for any environment variables or system settings on Windows 11 Pro that might affect how applications store and retrieve user preferences.

Example

No specific code example can be provided without more details on the internal workings of Claude Code, but checking configuration files or settings related to trust preferences might look something like examining files in a .config directory or similar.

Notes

The exact cause of the issue is unclear without more information on how Claude Code stores and retrieves trust settings for directories. This guidance is based on the assumption that the issue is related to how user preferences are handled.

Recommendation

Apply workaround: Manually select the trust option each session until a more permanent fix can be identified and implemented, as there's no clear indication of a version that fixes this issue or a configuration change that would resolve it.

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

claude-code - 💡(How to fix) Fix [BUG] Trust prompt re-appears every session for home directory (C:\Users\<username>)