Antigravity usage no longer gets stuck after an interrupted refresh (#54, thanks @dvschultz; fixed in #55).
A usage refresh saves a recovery note before it runs agy, and removes it when agy finishes. If ccswap was quit or killed in between (closing the menu bar, shutting down the Mac), the note stayed behind. ccswap then stopped fetching Antigravity usage for that account and kept showing the last numbers it had, so a 5h window could sit at "0m" for days. The copy of the login that the note pointed at lived in the system temp folder, which macOS clears after a few days, so the only way out was to sign in again and run ccswap agy add.
Now:
- The copy is kept in
~/.claude-swap-backup/agy/instead of the temp folder, so macOS doesn't delete it. - On the next refresh, ccswap saves the copy and fetches again by itself. It holds back if the copy is missing, belongs to another account, or is less than 90 seconds old (an
agyprocess from the killed run could still be using it), or if a newer login was saved since. In those cases it keeps asking you to sign in again rather than risk restoring an older login. - The menu bar shows "Recovery required: run ccswap agy add" on a blocked account instead of only the old numbers.
If you're already stuck from before this release, macOS has probably deleted the copy already. Sign in to Antigravity again and run ccswap agy add once.