-
Notifications
You must be signed in to change notification settings - Fork 130
Description
Hello,
I am experiencing a persistent API connection issue where the Gemini Agent in VS Code is unstable.
Core Problem:
The "Agent is working" status never appears. After one successful prompt, all subsequent prompts fail with the error: [API Error: An unknown error occurred.]
Key Finding:
This error happens consistently, even in a completely empty folder. The problem is not related to project size or complexity.
Exhaustive Troubleshooting Steps Performed:
- I have performed a complete clean reinstall of VS Code, including manually deleting the user data folders (
%APPDATA%\Code
and%USERPROFILE%\.vscode
). - I have created a brand new, clean Google Cloud project where I am the full "Owner".
- The new project is linked to a new, active Billing Account.
- "Gemini API" and "Cloud AI Companion API" are both enabled in the new project.
- I have bypassed my local Mikrotik router and connected my PC directly to my ISP's modem, and the issue still persists.
Conclusion:
The issue does not appear to be related to my local configuration, project setup, or local network hardware. The problem seems to be a fundamental connection/authentication bug, possibly related to my account or network routing from my region (Indonesia) to the nearest available servers (likely Singapore).
Thank you for your assistance.