gemini-cli PR moves full-chat error reports out of world-readable /tmp

Neal006 · ghdev · 2026-11-02

A community PR (#30088) for gemini-cli fixes a privacy issue: error reports (gemini-client-error-.json) contain the full chat history but were written to os.tmpdir() with default permissions, leaving them world-readable on Linux/macOS. The PR relocates them to /.gemini/tmp/error-reports/, creates the directory with 0700 and files with 0600, and reuses existing sandbox handling via Storage.getGlobalTempDir(). The author notes this won't stop antivirus software from quarantining transcripts (the original #15404 issue), but stops dropping full transcripts into the system temp dir on every API error.

Original post →

More from coding & agent

coding & agent channel →