Skip to content

适配 Antigravity IDE 2.0 主进程重命名#87

Open
unendev wants to merge 2 commits into
yuaotian:mainfrom
unendev:feat/compatibility-antigravity-2.0
Open

适配 Antigravity IDE 2.0 主进程重命名#87
unendev wants to merge 2 commits into
yuaotian:mainfrom
unendev:feat/compatibility-antigravity-2.0

Conversation

@unendev
Copy link
Copy Markdown

@unendev unendev commented May 20, 2026

Antigravity IDE 升级至 2.0 后,主进程的可执行文件名由 Antigravity.exe 变更为 Antigravity IDE.exe,导致代理 DLL 无法正确识别主进程,网络请求拦截失效。

修改内容:

  1. src/hooks/Hooks.cpp:IsCurrentAntigravityMainProcess() 增加对 antigravity ide.exe 的匹配,向下兼容旧版 antigravity.exe
  2. build.ps1:默认 config.json 的 target_processes 增补 Antigravity IDE.exe,确保新装用户开箱即用
  3. resources/config-web/index.html:同步更新配置工具中的默认值,保持一致性

已在 Windows x64 本地编译并部署,实测 Antigravity IDE 2.0 网络请求可正常被代理拦截。

Antigravity IDE 升级至 2.0 后,主进程的可执行文件名由 Antigravity.exe 变更为 Antigravity IDE.exe,导致代理 DLL 无法正确识别主进程,网络请求拦截失效。

修改内容:
1. src/hooks/Hooks.cpp:IsCurrentAntigravityMainProcess() 增加对 antigravity ide.exe 的匹配,向下兼容旧版 antigravity.exe
2. build.ps1:默认 config.json 的 target_processes 增补 Antigravity IDE.exe,确保新装用户开箱即用
3. resources/config-web/index.html:同步更新配置工具中的默认值,保持一致性

已在 Windows x64 本地编译并部署,实测 Antigravity IDE 2.0 网络请求可正常被代理拦截。
@max-kuzmin
Copy link
Copy Markdown

max-kuzmin commented May 20, 2026

It can't be compiled because of error in build.ps1

Copy link
Copy Markdown

@CrazyBoyFeng CrazyBoyFeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

language_server.exe 也应该加入 target_processes 列表。或者将 language_server_windows 改为 language_server,这样除了 Antigravity IDE,还兼容了新的 Antigravity 2.0。

@unendev unendev force-pushed the feat/compatibility-antigravity-2.0 branch from 31312ce to 2c74a05 Compare May 23, 2026 13:02
@unendev unendev force-pushed the feat/compatibility-antigravity-2.0 branch from 2c74a05 to 5844afb Compare May 23, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants