Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
12d743fb
Unverified
Commit
12d743fb
authored
Mar 09, 2026
by
Wesley Liddick
Committed by
GitHub
Mar 09, 2026
Browse files
Merge pull request #868 from touwaeriol/pr/bump-antigravity-version
chore: bump Antigravity user agent version to 1.20.4
parents
6acb9f79
eb6f5c69
Changes
2
Hide whitespace changes
Inline
Side-by-side
backend/internal/pkg/antigravity/oauth.go
View file @
12d743fb
...
...
@@ -49,8 +49,8 @@ const (
antigravityDailyBaseURL
=
"https://daily-cloudcode-pa.sandbox.googleapis.com"
)
// defaultUserAgentVersion 可通过环境变量 ANTIGRAVITY_USER_AGENT_VERSION 配置,默认 1.
19.6
var
defaultUserAgentVersion
=
"1.
19.6
"
// defaultUserAgentVersion 可通过环境变量 ANTIGRAVITY_USER_AGENT_VERSION 配置,默认 1.
20.4
var
defaultUserAgentVersion
=
"1.
20.4
"
// defaultClientSecret 可通过环境变量 ANTIGRAVITY_OAUTH_CLIENT_SECRET 配置
var
defaultClientSecret
=
"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"
...
...
backend/internal/pkg/antigravity/oauth_test.go
View file @
12d743fb
...
...
@@ -690,7 +690,7 @@ func TestConstants_值正确(t *testing.T) {
if
RedirectURI
!=
"http://localhost:8085/callback"
{
t
.
Errorf
(
"RedirectURI 不匹配: got %s"
,
RedirectURI
)
}
if
GetUserAgent
()
!=
"antigravity/1.
19.6
windows/amd64"
{
if
GetUserAgent
()
!=
"antigravity/1.
20.4
windows/amd64"
{
t
.
Errorf
(
"UserAgent 不匹配: got %s"
,
GetUserAgent
())
}
if
SessionTTL
!=
30
*
time
.
Minute
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment