opencode 在使用 antigravity 的时候突然报错:This version of Antigravity is no longer supported. Please update to receive the latest features!,翻了一圈,发现是昨天的更新导致的 reddit 上已经有解决方法了,意思是,这个 antigravity-accounts 的 JSON 需要更新一下,将其中两个地方更新:1、antigravity 的版本和 SDK 的版本
编辑:~/.config/opencode/antigravity-accounts.json
找到 fingerprint,修改:
"userAgent": "antigravity/1.15.8 linux/arm64",
"apiClient": "google-cloud-sdk vscode/1.104.0",
目前 antigravity 版本最新是 1.15.8,所以改成这个就行了。下面 apiClient 我原来是 python 的,目前我也改成这样。改完重启 opencode,否则可能会被覆盖。
目前 antigravity 版本最新是 1.15.8,所以改成这个就行了。下面 apiClient 我原来是 python 的,目前我也改成这样。改完重启 opencode,否则可能会被覆盖。
然后我就恢复正常了:reddit 的原贴在此 :https://www.reddit.com/r/opencodeCLI/comments/1qqhywb/opencode_this_version_of_antigravity_is_no_longer/
或者看这里:https://github.com/NoeFabris/opencode-antigravity-auth/issues/324 ,有现成的一键解决方案

