Conversation
agy.exe reads gemini:antigravity at process start, so file-only profile copies never switch the live Windows login.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
On Windows,
agy.exereads the live Antigravity token from Credential Manager targetgemini:antigravityat process start. Copying~/.geminifiles does not change that slot, soswitchandloginleft the live Windows login in place.What
ctypes/
advapi32Generic credentials (CRED_TYPE_GENERIC, 2560-byte blob cap):gemini:antigravity(override withAGY_WINCRED_TARGET)agy-cli-manager:<name>switch/activatecopy a profile blob onto the live target viaapply_to_liveloginsnapshots the live slot, letsagywrite a new blob, then copies it toagy-cli-manager:<storage>; restore the snapshot if login failsagy.exeorAntigravity*is running;--forceoverrideswincred_antigravity.json-> profile target +credential.meta.json(sha256/length only), then delete the JSONagy-cli-manager-test:*; they never touchgemini:antigravityflowchart LR subgraph credman [Windows CredMan Generic] Live["gemini:antigravity"] Prof["agy-cli-manager:<profile>"] Backup["agy-cli-manager:backup:live"] end agy["agy.exe start"] -->|CredReadW| Live Prof -->|"switch / apply_to_live"| Live Live -->|"login snapshot"| Backup Backup -->|login fail restore| Live Live -->|"login capture"| Prof JSON["wincred_antigravity.json"] -->|migrate_legacy_json then unlink| Prof JSON --> Meta["credential.meta.json"]Usage
--forceis the live-slot process-guard override. After a switch, restartagy; it still holds the old token in memory.Tests
PYTHONPATH=src pytest tests/test_wincred.py tests/test_watch.py: 26 passed