Gemini CLI PR fixes folder trust not persisting when running in podman/docker sandbox

21vedansh · ghdev · 2026-09-20

A PR (#29423) to google-gemini/gemini-cli fixes folder trust decisions not persisting when the CLI runs inside a podman/docker sandbox. The host-side trustedFolders. wasn't mounted into the container, so trust selections written to the temp .gemini dir were destroyed with the --rm container, re-triggering the trust dialog on every start.

The fix runs ensureHostFolderTrust on the host before launching the sandbox, passes the decision in via GEMINICLITRUSTWORKSPACE, and syncs later /permissions trust changes back to the host through a trust-request. file read at container exit. It fixes issue #29408 and is scoped to sandbox + folder trust behavior.

Original post →

More from coding & agent

coding & agent channel →