Repository navigation
Allways loading same account, not last used #446
Dovzhenko-coder
started this conversation in
General
Replies: 2 comments 1 reply
|
Hi, this issue has been attempted to be fixed in version 0.33.1. Please update to it. If the problem persists, kindly open an issue and send the collected logs so I can investigate.https://github.com/Draculabo/AntigravityManager/releases/tag/v0.33.1 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Environment
OS: Windows 11
Antigravity Manager Version: 0.32.1 - 0.33.0
Antigravity Classic: 2.33.0
Antigravity IDE: 2.7.0
Description of the Issue
When switching accounts via Antigravity Manager, the active account changes in Manager. But when loading app Antigravity loads not that Google account, and not the last one I used, its loads the second Google account allways. Month ago I didnt have this problem.
Maybe its after agy update, or because I have scheduled automations / sidecars enabled (defined in ~/.gemini/config/sidecars/ using builtin: "schedule").
Root Cause Analysis
We performed deep process and credential inspection and traced the exact mechanism causing this behavior:
Orphan language_server.exe processes are ignored during switch: In Antigravity Manager's process discovery (isAntigravityHelperProcess inside app.asar):
javascript
function isAntigravityHelperProcess(name, args) {
return /helper|plugin|renderer|gpu|crashpad|utility|audio|sandbox|language_server/i.test(name) || ...
}
Because language_server is explicitly filtered out, Antigravity Manager terminates only the main GUI windows (Antigravity.exe / Antigravity IDE.exe) but leaves child / detached language_server.exe multicall schedule ... processes running in memory.
In-memory token refresh race: The detached language_server.exe multicall schedule process keeps the OAuth refresh token of the previously active account in its RAM. When its internal token refresh cycle triggers (approx. every 60 minutes), it contacts Google OAuth (oauth2.googleapis.com), receives a new access token for that old account, and writes it directly to Windows Credential Manager under the target name gemini:antigravity via Win32 CredWriteW.
Silent overwrite of Credential Manager: This background write silently overwrites the gemini:antigravity credentials that Antigravity Manager had just set for the new account. When Antigravity or Antigravity IDE subsequently checks gemini:antigravity, it picks up the old account again.
Secondary key mismatch: Antigravity recently rebranded its onboarding configuration keys from jetski.onboarding.lastLoginUsername to agy.onboarding.lastLoginUsername in app_storage.json, whereas Antigravity Manager still writes to the legacy jetski.* keys.
Questions for Maintainers
What is the real problem? How to fix it?
Is this issue already recognized or addressed in an upcoming release?
Are there plans to update isAntigravityHelperProcess or the process cleanup routine so that detached language_server.exe instances (specifically multicall schedule and orphan sidecars) are terminated when switching accounts?
Any guidance or planned fixes would be greatly appreciated.
All reactions