Potential file finding bug
Environment
- SDK version: 0.1.5
- Python version: 3.11
- OS / platform: Windows 11 Home 64 bits
- Install method: Through Pycharm package interface
Description
Hi, I have seen this kind of message when the agent was trying to access files from the path I have given it access to. The file exists at that path, but, for some reason the message still appears. Message: WARNING:root:System step error (HTTP 0): The model produced an invalid tool call. ("model output error: invalid tool call error (invalid_args) failed to read file: open C:/Users/example/Desktop/Two words/Test-Path/Teacher - learner/joda-money/src/main/java/org/joda/money/CurrencyUnitRegistry.java: The system cannot find the file specified.")
Expected Behavior
I expected it to be able to find the file, because it exists at the specified path.
Actual Behavior
It was unable to find the existing file at the given path.
ในวันที่ จ. 29 มิ.ย. 2026 11:38 น. พุทธรักษา @.***> เขียนว่า:
ในวันที่ ส. 27 มิ.ย. 2026 16:36 น. cristianknebel < @.***> เขียนว่า:
cristianknebel created an issue (google-antigravity/antigravity-sdk-python#89) https://github.com/google-antigravity/antigravity-sdk-python/issues/89 Environment
- SDK version: 0.1.5
- Python version: 3.11
- OS / platform: Windows 11 Home 64 bits
- Install method: Through Pycharm package interface
Description
Hi, I have seen this kind of message when the agent was trying to access files from the path I have given it access to. The file exists at that path, but, for some reason the message still appears. Message: WARNING:root:System step error (HTTP 0): The model produced an invalid tool call. ("model output error: invalid tool call error (invalid_args) failed to read file: open C:/Users/example/Desktop/Two words/Test-Path/Teacher - learner/joda-money/src/main/java/org/joda/money/CurrencyUnitRegistry.java: The system cannot find the file specified.") Expected Behavior
I expected it to be able to find the file, because it exists at the specified path. Actual Behavior
It was unable to find the existing file at the given path.
— Reply to this email directly, view it on GitHub https://github.com/google-antigravity/antigravity-sdk-python/issues/89?email_source=notifications&email_token=BNRBY7E4CSP7ESNZEGXDLET5B6ISJA5CNFSL4Z3JMQ5C6L3HNF2C22DVMIXUS43TOVSS6NBXGU3TONJSGQ3DRJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L, or unsubscribe https://github.com/notifications/unsubscribe-auth/BNRBY7A7NTIPVAPUKKBQZZT5B6ISJAVCNFSNUABGKJSXA33TNF2G64TZHMYTEMRVGAYDKNBWGM5US43TOVSTWNBXGU3TONJSGQ3DRILWAI . Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS https://github.com/notifications/mobile/ios/BNRBY7GXSTOU7BHBCACRLOD5B6ISJA5CNFSL4Z3JMQ5C6L3HNF2C22DVMIXUS43TOVSS6NBXGU3TONJSGQ3DRJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KUZTPN52GK4S7NFXXG and Android https://github.com/notifications/mobile/android/BNRBY7FQLJKRSYPZSNTXKC35B6ISJA5CNFSL4Z3JMQ5C6L3HNF2C22DVMIXUS43TOVSS6NBXGU3TONJSGQ3DRJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA. Download it today! You are receiving this because you are subscribed to this thread.Message ID: @.***>
ในวันที่ ส. 27 มิ.ย. 2026 16:36 น. cristianknebel @.***> เขียนว่า:
cristianknebel created an issue (google-antigravity/antigravity-sdk-python#89) https://github.com/google-antigravity/antigravity-sdk-python/issues/89 Environment
- SDK version: 0.1.5
- Python version: 3.11
- OS / platform: Windows 11 Home 64 bits
- Install method: Through Pycharm package interface
Description
Hi, I have seen this kind of message when the agent was trying to access files from the path I have given it access to. The file exists at that path, but, for some reason the message still appears. Message: WARNING:root:System step error (HTTP 0): The model produced an invalid tool call. ("model output error: invalid tool call error (invalid_args) failed to read file: open C:/Users/example/Desktop/Two words/Test-Path/Teacher - learner/joda-money/src/main/java/org/joda/money/CurrencyUnitRegistry.java: The system cannot find the file specified.") Expected Behavior
I expected it to be able to find the file, because it exists at the specified path. Actual Behavior
It was unable to find the existing file at the given path.
— Reply to this email directly, view it on GitHub https://github.com/google-antigravity/antigravity-sdk-python/issues/89?email_source=notifications&email_token=BNRBY7E4CSP7ESNZEGXDLET5B6ISJA5CNFSL4Z3JMQ5C6L3HNF2C22DVMIXUS43TOVSS6NBXGU3TONJSGQ3DRJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L, or unsubscribe https://github.com/notifications/unsubscribe-auth/BNRBY7A7NTIPVAPUKKBQZZT5B6ISJAVCNFSNUABGKJSXA33TNF2G64TZHMYTEMRVGAYDKNBWGM5US43TOVSTWNBXGU3TONJSGQ3DRILWAI . Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS https://github.com/notifications/mobile/ios/BNRBY7GXSTOU7BHBCACRLOD5B6ISJA5CNFSL4Z3JMQ5C6L3HNF2C22DVMIXUS43TOVSS6NBXGU3TONJSGQ3DRJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KUZTPN52GK4S7NFXXG and Android https://github.com/notifications/mobile/android/BNRBY7FQLJKRSYPZSNTXKC35B6ISJA5CNFSL4Z3JMQ5C6L3HNF2C22DVMIXUS43TOVSS6NBXGU3TONJSGQ3DRJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA. Download it today! You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hey there @cristianknebel , quick question - is that Desktop path by any chance OneDrive managed?
On Win11 the desktop can be setup to be online-only which could be a cause here? Thanks in advance!
Hey there @cristianknebel , quick question - is that Desktop path by any chance OneDrive managed?
On Win11 the desktop can be setup to be online-only which could be a cause here? Thanks in advance!
Hello, thanks for the comment. I am not using OneDrive or any other similar tool. It is a local path, not managed by anything else.
Thanks @cristianknebel, so OneDrive is not it (not surpisingly).
Two quick things to help pin it down:
-
does it fail on that file every time or only sometimes? and
-
could you set logging to DEBUG and grab the raw tool-call arguments for the read — the exact path string before it hits
open()? The rendered error may be hiding a whitespace/escaping/encoding difference the raw args would show. -
Also handy: does
python -c "print(open(r'<your path>').read())"from the same shell succeed?
FWIW I couldn't reproduce on local (non-OneDrive) Win11 with a synthetic tree matching your path, so it seems specific to your setup.
Thanks @cristianknebel, so OneDrive is not it (not surpisingly).
Two quick things to help pin it down:
- does it fail on that file every time or only sometimes? and
- could you set logging to DEBUG and grab the raw tool-call arguments for the read — the exact path string before it hits
open()? The rendered error may be hiding a whitespace/escaping/encoding difference the raw args would show.- Also handy: does
python -c "print(open(r'<your path>').read())"from the same shell succeed?FWIW I couldn't reproduce on local (non-OneDrive) Win11 with a synthetic tree matching your path, so it seems specific to your setup.
Thank you too for the advice. I ran the code with the changes you recommended. The behaviour happens for multiple files and when running the command, it actually was unable to find them. I also checked and there was no such file at the given path. I am even more confused now.
في الحقيقة ج. 29 م. 2026 11:38 ص. شكرا @.***> ملاحظة: ...
ในวันที่ จ. 6 ก.ค. 2026 20:52 น. Narjes0v0 @.***> เขียนว่า:
Narjes0v0 left a comment (google-antigravity/antigravity-sdk-python#89) https://github.com/google-antigravity/antigravity-sdk-python/issues/89#issuecomment-4893591144
في الحقيقة ج. 29 م. 2026 11:38 ص. شكرا @.***> ملاحظة: ... <#m_4775111309271326242_>
17833459139395971868971966484048.jpg (view on web) https://github.com/user-attachments/assets/40e9cb9b-1a54-4bc5-85af-0401a6bba826
— Reply to this email directly, view it on GitHub https://github.com/google-antigravity/antigravity-sdk-python/issues/89?email_source=notifications&email_token=BNRBY7CUI5PMSPETBM6Y2M35DOVLDA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBZGM2TSMJRGQ2KM4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-4893591144, or unsubscribe https://github.com/notifications/unsubscribe-auth/BNRBY7D4XFYINARI2RAMMZL5DOVLDAVCNFSNUABGKJSXA33TNF2G64TZHMYTEMRVGAYDKNBWGM5US43TOVSTWNBXGU3TONJSGQ3DRILWAI . Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS https://github.com/notifications/mobile/ios/BNRBY7GZXOODPZ5BU6QU7CL5DOVLDA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBZGM2TSMJRGQ2KM4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJKTGN5XXIZLSL5UW64Y and Android https://github.com/notifications/mobile/android/BNRBY7FMIXQCVPRIKLM73SL5DOVLDA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBZGM2TSMJRGQ2KM4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI. Download it today! You are receiving this because you commented.Message ID: @.*** com>
Hmm... that's a helpful result. If the plain Python open() failed too and there's genuinely no file sitting at that path, then the path itself is the culprit — something's asking to read a file that isn't there. And since it's happening on multiple files, it feels systematic rather than a fluke.
So I think the question flips a bit: it's less "why can't the tool find the file" and more "why is that path showing up at all when nothing's there."
Two things that'd help figure out where the paths are coming from:
- Are these paths you're passing in yourself, or ones the agent came up with on its own?
- If it's the agent — does it list the folder first (list_dir / find_by_name) before the read, or does it jump straight to view_file on a path it never actually looked up? The DEBUG logs should show the order of tool calls.
Thinking outloud here.... is it inventing reasonable-looking paths (the classic org/joda/money/... layout, say) instead of reading what's really on disk — but the tool-call order would tell us for sure. Happy to keep digging with you on it.
Hmm... that's a helpful result. If the plain Python
open()failed too and there's genuinely no file sitting at that path, then the path itself is the culprit — something's asking to read a file that isn't there. And since it's happening on multiple files, it feels systematic rather than a fluke.So I think the question flips a bit: it's less "why can't the tool find the file" and more "why is that path showing up at all when nothing's there."
Two things that'd help figure out where the paths are coming from:
- Are these paths you're passing in yourself, or ones the agent came up with on its own?
- If it's the agent — does it list the folder first (list_dir / find_by_name) before the read, or does it jump straight to view_file on a path it never actually looked up? The DEBUG logs should show the order of tool calls.
Thinking outloud here.... is it inventing reasonable-looking paths (the classic org/joda/money/... layout, say) instead of reading what's really on disk — but the tool-call order would tell us for sure. Happy to keep digging with you on it.
The path exists, it is just that the file does not exist. I am giving a base bath, where the project is, so the model knows where to look for files, edit them, etc. Then, I am letting it free in doing anything to every file that exists. Also to create files. Both the paths and file names are made by the model, not passed explicit by me (besides that base path where the project exists). I think I found some cases where it tried to use list_directory but still failed to find the file. Will upload some logs, think it is easier to take a look at them. Thank you, I am also glad to try and find a solution with you to this :)
antigravity_debug.log antigravity_debug2.log antigravity_debug3.log
Thanks for the details so far. Many releases have shipped since 0.1.5. Could you retry on google-antigravity 0.1.23 (pip install -U google-antigravity) with a workspace path that contains spaces, and share the exact path the agent tried to read if it still fails? If we do not hear back, we will close this issue on November 30, 2026.