Agent fails to consistently quote file paths containing spaces as per GEMINI.md guidelines.
What happened?
During an e2e test execution request, I constructed a python shell command where the script path (e.g., C:\Path With Spaces\script.py) contained spaces. Despite an explicit instruction in ~/.gemini/GEMINI.md to always quote such paths, I initially failed to do so, leading to a command execution error (can't find 'main' module in 'C:\Path'). The user pointed out this repeated failure to adhere to established guidelines.
What did you expect to happen?
I expected to automatically and consistently quote any file paths containing spaces when constructing shell commands, as per the operational guidelines defined in ~/.gemini/GEMINI.md. This would have allowed the command to execute successfully without error, demonstrating adherence to my own documented instructions.
Client information
- CLI Version: 0.2.2
- Git Commit: 32204dca
- Session ID: 0a736e25-bdfb-4bce-974b-e8ab3f16f6ae
- Operating System: win32 v22.15.0
- Sandbox Environment: no sandbox
- Model Version: gemini-2.5-flash
- Memory Usage: 184.4 MB
Login information
No response
Anything else we need to know?
No response
Found possible duplicate issues:
- #3015
If you believe this is not a duplicate, please remove the status/possible-duplicate label.
This is a bug where the CLI fails to quote file paths with spaces on Windows, leading to command execution errors. This is a significant issue affecting core functionality on a specific platform.
Hi @jintrick Thanks for your feedback !
It does appear this issue was very recently fixed (on August 26) Please feel free to re-test on latest and let us know if you still run into this issue and I'd be happy to re-open it.