Feature request: flag to skip workspace trust dialog without bypassing all permissions

Resolved 💬 2 comments Opened Apr 8, 2026 by DavidBellamy Closed Apr 8, 2026

Problem

Every new Claude Code session shows a "Do you trust the files in this folder?" prompt. This prompt does not persist trust across sessions, so it appears every single time, even for the same directory.

This is especially friction-heavy when auto-launching Claude Code from a VS Code terminal profile, where every new terminal triggers the prompt.

Current workarounds

  • --dangerously-skip-permissions skips the trust dialog but also disables all permission prompts (edits, bash commands, etc.), which is too permissive for normal use.
  • There is no flag, setting, or environment variable to skip only the trust dialog while keeping normal permission checks active.

Proposed solution

One or more of:

  1. Persist trust per directory so the prompt only appears once per directory, not once per session.
  2. A CLI flag like --trust-cwd that skips the workspace trust dialog without affecting other permission checks.
  3. A setting like "trustedDirectories": ["/Users/me/GitHub"] in settings.json to pre-trust specific paths or path prefixes.

Option 3 would be ideal as it combines security (explicit allowlist) with convenience (no repeated prompts).

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗