You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Workspace-level policy files placed in $WORKSPACE_ROOT/.gemini/policies/*.toml are not loaded or applied. The same policy file works correctly when placed in ~/.gemini/policies/ but has no effect in the workspace directory.
Steps to Reproduce
Create a git repository (or use an existing one)
Trust the folder (confirmed in ~/.gemini/trustedFolders.json)
Enable folder trust in project settings (.gemini/settings.json):
Moving the policy file to ~/.gemini/policies/ (user-level) works correctly. However this applies globally to all projects, which is undesirable for project-scoped tooling.
Notes
The folder is trusted (~/.gemini/trustedFolders.json contains "TRUST_FOLDER" for the project path)
The policy file has correct permissions (644) and valid TOML syntax
This was tested both with and without security.folderTrust.enabled = true in project settings
I expect /policies list to show the project policy test.toml
Client information
Client Information
gemini-cli v0.34.0-nightly.20260307.6c3a90645 (also tested on v0.32.1 stable)
macOS (Darwin 25.2.0, arm64)
Node installed via npm globally
Description
> /about│ About Gemini CLI ││ ││ CLI Version 0.34.0-nightly.20260307.6c3a90645 ││ Git Commit bab35a1f1 ││ Model Auto (Gemini 3) ││ Sandbox no sandbox ││ OS darwin ││ Auth Method Logged in with Google (*) ││ Tier Gemini Code Assist for individuals
What happened?
Workspace-level policy files placed in
$WORKSPACE_ROOT/.gemini/policies/*.tomlare not loaded or applied. The same policy file works correctly when placed in~/.gemini/policies/but has no effect in the workspace directory.Steps to Reproduce
~/.gemini/trustedFolders.json).gemini/settings.json):{ "security": { "folderTrust": { "enabled": true } } }.gemini/policies/test.toml:geminiin the project directoryWorkaround
Moving the policy file to
~/.gemini/policies/(user-level) works correctly. However this applies globally to all projects, which is undesirable for project-scoped tooling.Notes
~/.gemini/trustedFolders.jsoncontains"TRUST_FOLDER"for the project path)security.folderTrust.enabled = truein project settingsWhat did you expect to happen?
I expect /policies list to show the project policy test.toml
Client information
Client Information
Description
Login information
Google Account
Anything else we need to know?
No response