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-permissionsskips 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:
- Persist trust per directory so the prompt only appears once per directory, not once per session.
- A CLI flag like
--trust-cwdthat skips the workspace trust dialog without affecting other permission checks. - A setting like
"trustedDirectories": ["/Users/me/GitHub"]insettings.jsonto pre-trust specific paths or path prefixes.
Option 3 would be ideal as it combines security (explicit allowlist) with convenience (no repeated prompts).
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗