feat(antigravity): add OAuth-backed remote usage when the IDE is closed#635
feat(antigravity): add OAuth-backed remote usage when the IDE is closed#635abnormal749 wants to merge 2 commits intosteipete:mainfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: afc6eede32
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Sources/CodexBar/Providers/Antigravity/AntigravityLoginRunner.swift
Outdated
Show resolved
Hide resolved
Sources/CodexBarCore/Providers/Antigravity/AntigravityRemoteUsageFetcher.swift
Outdated
Show resolved
Hide resolved
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Summary
Add remote Antigravity usage support to CodexBar so usage can still be fetched when the local IDE API is unavailable.
The implementation stays within CodexBar. The remote flow was referenced from
antigravity-usage, then adapted to fit CodexBar’s existing provider, settings, and runtime patterns.What changed
~/.codexbar/antigravity/oauth_creds.jsonAuto,Google OAuth,Local IDE APIAutouses:403 PERMISSION_DENIEDAntigravity.appbundle, with env vars available as an override:ANTIGRAVITY_OAUTH_CLIENT_IDANTIGRAVITY_OAUTH_CLIENT_SECRETNotes
antigravity-usageAntigravity.appis installed, CodexBar can discover the OAuth client locallyTesting
swift build --scratch-path /tmp/codexbar-swiftpm-scratchPrepared with Codex.