MacOS14.8、15.7 update breaks TMPDIR environment variable

3 hours ago 1

What happened?

After upgrading my MacOS to 15.7 this warning is displayed with every command:
` EACCES: permission denied, access '/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/gemini-cli-warnings.txt'

The folder /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T has the following permissions:
drwx------@ 61 root wheel 1952 Sep 18 14:09 T

The following command shows that this folder is flagged with the rootless permissions so I cannot change the permissions to grant read/write access to non-root users.

~ % sudo xattr /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T com.apple.rootless

This causes multiple ✖ missing pgrep output (x6) errors any time a shell command is run.

What did you expect to happen?

Gemini would use a folder that it has permissions to write to for temp files.

Client information

  • CLI Version: 0.5.3
  • Git Commit: cb34104
  • Session ID: 9704095e-d36c-42c8-b141-a1d452e3eb34
  • Operating System: darwin v24.8.0
  • Sandbox Environment: no sandbox
  • Model Version: gemini-2.5-pro
  • Memory Usage: 381.7 MB

Login information

Google Account

Anything else we need to know?

For troubleshooting I uninstalled via brew, deleted the .gemini folder, then reinstalled via brew. The issue did not go away.

Read Entire Article