I am facing a performance issue in the Google Anti-Gravity Editor when working with very large prompt inputs.
When I paste a large prompt, around 3000 to 4000 lines, the editor starts processing and everything works correctly. There are no issues during the initial session.
However, after I close the editor and open it again, the problem appears.
Steps to reproduce:
-
Open Google Anti-Gravity Editor
-
Paste a very large prompt, approximately 3000 to 4000 lines
-
Let the agent process it successfully
-
Close the editor
-
Reopen the editor
Actual behavior:
After reopening, the agent panel automatically loads the last prompt history and task history below the agent prompt input.
This causes the application to become extremely slow. The UI is almost unresponsive, and I am unable to interact with the editor or perform any actions.
Yes I have come across this, it is caused by RAM usage by the language server. The only thing that worked for me that allowed continued use of the workspace was to delete the conversation so the language server didn’t keep trying to load that prompt into it’s context. Before I did this I asked the agent for a detailed tech spec for future agent use so the rest of the conversation context was not completely lost.
Not sure what your prompt was but I’ll assume for example it could have been a source code dump. In this case put the code into a text file in the workspace directory and reference the file in the prompt.
Hi @safdar_azeem ,
Thank you for flagging the issue.
We recommend you to please clear the agent history before closing the editor or start a new session before exiting and avoid keeping extremely large prompts in persistent session state.
1 Like