gemini-cli - 💡(How to fix) Fix `ide.enabled: false` in settings.json does not prevent IDE client from corrupting trustedFolders.json [1 participants]

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…
GitHub stats
google-gemini/gemini-cli#26246Fetched 2026-05-01 05:53:13
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
labeled ×1

Error Message

I tried to set up Gemini CLI in the terminal of VS Code with a Podman sandbox, but after setting up the Podman sandbox, I can't get Gemini to trust my project folder. I got the error message Error in /home/[user]/.gemini/trustedFolders.json: EACCES: permission denied, open '/home/[user]/.gemini/trustedFolders.json' Please fix the configuration file and try again. So I tried deleting trustedFolders.json, I tried setting "ide": { "enabled": false } in ~/.gemini/settings.json, but every single time I try to launch Gemini, I get prompted to trust the folder and the error happens all over again. I also got this error message after changing the IDE setting: [DEBUG] [IDEClient] IDE integration disabled. To enable it again, run /ide enable

RAW_BUFFERClick to expand / collapse

What happened?

I tried to set up Gemini CLI in the terminal of VS Code with a Podman sandbox, but after setting up the Podman sandbox, I can't get Gemini to trust my project folder. I got the error message Error in /home/[user]/.gemini/trustedFolders.json: EACCES: permission denied, open '/home/[user]/.gemini/trustedFolders.json' Please fix the configuration file and try again. So I tried deleting trustedFolders.json, I tried setting "ide": { "enabled": false } in ~/.gemini/settings.json, but every single time I try to launch Gemini, I get prompted to trust the folder and the error happens all over again. I also got this error message after changing the IDE setting: [DEBUG] [IDEClient] IDE integration disabled. To enable it again, run /ide enable

What did you expect to happen?

With ide.enabled: false in settings.json, the IDE client should not run at all, and trustedFolders.json should be written correctly and persist between sessions without errors.

Client information

I can't run /about due to this bug, but my Gemini CLI version is v0.40.0, my operating system is Bazzite DX, and my Node.js version is v20.20.2

Login information

I'm using the free Gemini Code Assist for individuals plan by logging in with a Google account.

Anything else we need to know?

Claude Sonnet was helping me with my set up and helped me identify this bug. It wrote the following:

This issue began occurring immediately after configuring Podman sandbox support by setting GEMINI_SANDBOX=podman and SANDBOX_SET_UID_GID=true in ~/.gemini/.env. The issue did not occur before sandbox setup. It's possible the sandbox launch sequence creates a race condition or timing issue between the IDEClient and the trustedFolders.json write that doesn't occur in a non-sandboxed launch.

This is related to but distinct from issue #25032. That issue describes a trust mismatch when the IDE companion extension is active. This issue reproduces even with IDE integration explicitly disabled via settings.json. The [IDEClient] debug message suggests the IDE client code path is still executing despite the setting, and its interaction with the trust flow is what corrupts the file.

Also, here's the contents of my ~/.gemini/.env file:

GEMINI_SANDBOX=podman SANDBOX_SET_UID_GID=true export SANDBOX_FLAGS="--security-opt label=disable" GEMINI_TRUST_WORKSPACE=true

extent analysis

TL;DR

The issue is likely due to a permission or timing issue related to the Podman sandbox setup, causing the Gemini CLI to fail when trying to trust the project folder.

Guidance

  • Verify that the ~/.gemini directory and its contents have the correct ownership and permissions, as the error message suggests a permission denied issue.
  • Try setting SANDBOX_SET_UID_GID=false in ~/.gemini/.env to see if it resolves the issue, as this setting may be causing a conflict with the file system permissions.
  • Check the Gemini CLI documentation to see if there are any specific requirements or recommendations for running with a Podman sandbox.
  • Consider temporarily removing the GEMINI_TRUST_WORKSPACE=true line from ~/.gemini/.env to see if it affects the behavior.

Example

No code snippet is provided as it is not clearly supported by the issue.

Notes

The issue may be related to a known issue (#25032), but it is distinct and occurs even with IDE integration disabled. The [IDEClient] debug message suggests that the IDE client code path is still executing despite the setting, which may be contributing to the issue.

Recommendation

Apply workaround: Try setting SANDBOX_SET_UID_GID=false in ~/.gemini/.env to see if it resolves the issue, as this setting may be causing a conflict with the file system permissions.

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