I’ve been getting this error since this morning. Agent terminated due to error.
And whenever I retry or continue, it restarts the whole process that we did 3-4 prompts ago and duplicates things.
Getting this literally every 9 seconds or so
Could you please provide more detailed instructions? I would be very grateful.
-
Navigate to
~/.gemini/antigravity/brain/.
*.resolved: These are just logs of completed plans. If the code is already in yourlib/folder, these are useless. -
*.metadata.json: These are internal “receipts” that the AI reads every time it scans your project. -
task_progress_*.md: These are old drafts. Delete everything except the very last one (the highest number). -
Look at the folders by “Date Modified.”
-
Delete only the old folders: If you are working today, you can usually safely delete folders from 3 or 4 days ago.
-
Repeat for
~/.gemini/antigravity/code_tracker/history/.
4. The “Browser Cache” Wipe
The browser_recordings folder is often the secret reason for the “Token Limit Exceeded” error.
-
Action: Open this folder and delete all images/videos.
-
Result: This doesn’t delete your code or your conversation, but it stops the AI from trying to “upload” heavy images to the cloud every time you send a message.
You can ask gemini for more info about what to delete and what to keep.
issue persists. Seems like it helped in some way but didnt solve it.
I’m amazed that Google isn’t even trying to help. Why should I, even with the most expensive subscription, have to put up with this?
