mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-25 01:16:01 +03:00
[PR #101] [MERGED] fix(antigravity): implement automatic Project ID discovery to resolve 403 errors #263
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#263
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/justlovemaki/AIClient-2-API/pull/101
Author: @lethanhson9901
Created: 12/9/2025
Status: ✅ Merged
Merged: 12/9/2025
Merged by: @justlovemaki
Base:
main← Head:fix/antigravity-project-id-discovery📝 Commits (1)
6342801fix(antigravity): implement automatic project ID discovery and prevent overwrite📊 Changes
1 file changed (+172 additions, -99 deletions)
View changed files
📝
src/gemini/antigravity-core.js(+172 -99)📄 Description
Summary
This PR resolves the
403 Permission Deniederror encountered when using thegemini-antigravityprovider by implementing automatic Google Cloud Project ID discovery.Problem
Previously, the Antigravity provider generated a random, non-existent Project ID (e.g.,
swift-core-xxxxx) for every request. The Google API rejected these requests because the project did not exist or the user was not authorized for it, resulting in persistent 403 errors.Solution
Implemented Project ID Discovery:
onboardUserlogic from gemini-core.js to src/gemini/antigravity-core.js.loadCodeAssist.onboardUser.Fixed ID Overwrite Bug:
projectId.projectId, ensuring valid credentials are used instead of random placeholders.Verification
gemini-antigravityprovider without a hardcodedconfig.jsonproject ID.[Antigravity] Discovered existing Project ID: <valid-id>(or "Onboarded...").200 OKinstead of403 Permission Denied.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.