[BUG] Interactive session refuses to prompt for trust for projects with settings.json saying the session is not interactive

Status Fixed / completed
Reported on v2.1.191
Maintainer reply ✓ Yes — bcherny
Activity 3 comments · opened Jun 30, 2026 · closed Aug 16, 2026
💡 Likely answer: A maintainer (bcherny, collaborator) responded on this thread — see the highlighted reply below.

Preflight Checklist

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

What's Wrong?

When I run claude from the terminal in a folder with a settings.json in the .claude directory it says:

Ignoring 20 permissions.allow entries from .claude/settings.json: this workspace has not been trusted. Run Claude Code interactively here once and accept the trust dialog, or set projects["<folder removed>].hasTrustDialogAccepted: true in ~/.claude.json.

But I am running interactively.

What Should Happen?

It should prompt for trust

Error Messages/Logs

Steps to Reproduce

  1. create a folder in macOS and add .claude/settings.json with at least one allow statement
  2. Launch claude from terminal

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.191

Claude Code Version

2.1.196

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

3 Comments

hypermoose · 2 months ago
  • The problem seems to be because I had trusted my ~ home directory. That should have trusted this folder but instead did not and did not show the trust dialog. That is wrong.
dfherr · 2 months ago

can confirm. same issue on 2.1.197 with trusted home directory. claude itself traced it to this issue.

bcherny collaborator · 14 days ago

Thanks for the report. This was a real regression in 2.1.196: when a parent folder (e.g. your home directory) was already trusted, an interactive session in a subfolder that has .claude/settings.json allow rules skipped the trust dialog and printed the "this workspace has not been trusted" warning instead, so there was no way to accept.

This was fixed in 2.1.200. The trust dialog now appears in that case, lists the allow rules the folder would grant, and lets you accept or continue without them. See the changelog: https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md and the docs on project allow rules and workspace trust: https://code.claude.com/docs/en/permissions#project-allow-rules-and-workspace-trust

I re-tested on the current release, 2.1.233 (macOS): with the home directory trusted and a subfolder containing .claude/settings.json with two permissions.allow entries, launching claude interactively there shows the trust dialog listing both rules and no warning is printed.

Closing as fixed. If you still see this on 2.1.233 or later, reply here with your version, OS, and claude doctor output and we'll reopen.

🤖 Generated with Claude Code