Antigravity Powertools plugin restart mechanism on Windows 11.
Raw Developer Origin & Technical Request
GitHub Issue
Nov 26, 2026
### 操作系统
Windows
### Antigravity 客户端版本
2.35.2
### Agy Powertools 插件版本
2.16.4
### 现象描述
更新到 `v2.16.4` 后,在 Windows 11(Build 26220,默认终端为 Windows Terminal `1.25.3131.0`)上触发插件重启(包括开启内置免 TUN 代理自动重启或手动重启)时,**#61 描述的终端残留问题依然存在**:
- 重启瞬间仍会弹出标题为 `relaunch-antigravity` 的 Windows Terminal 标签页。
- `relaunch-antigravity.log` 显示重启脚本已走 `v2.16.4` 的 `Start-AgyDetached` 路径并在 2 秒内正常退出(`done agy_procs=6 verified=True`,未走 `cmd start` 回退),但进程树中 `conhost.exe`、`OpenConsole.exe -Embedding` 与 `WindowsTerminal.exe -Embedding` 依然全部存活。
- 终端窗口不会自动关闭并持续打印 Electron 主进程日志,手动关闭窗口仍会影响当前 Antigravity 会话。
预期表现:重启完成后无终端窗口残留,新拉起的 `Antigravity.exe` 完全脱离重启脚本的控制台/ConPTY 会话。
### 复现步骤
1. 在 Windows 11(默认终端为 Windows Terminal)安装 `Agy Powertools v2.16.4`。
2. 开启免 TUN 代理(`proxyEnabled: true`)或执行插件重启客户端操作。
3. 等待客户端重启完成,观察桌面与进程树:仍残留 `relaunch-antigravity` 终端窗口并持续输出日志;`conhost.exe` 与 `Antigravity.exe` 的父 PID 均指向已退出的重启脚本 `powershell.exe`。
### 报错信息或截图(可选)
### 根因分析(为什么 `v2.16.4` 的 `CreateNoWindow = $true` 未生效)
1. **`CREATE_NO_WINDOW` 对 `Antigravity.exe` 不生效**:实测 `Antigravity.exe` 的 PE Subsystem 为 `2`(`IMAGE_SUBSYSTEM_WINDOWS_GUI`)。按 Win32 `CreateProcess` 文档,`CREATE_NO_WINDOW`(`ProcessStartInfo.CreateNoWindow = $true`)仅对控制台(CUI)进程有效,对 GUI 进程会被直接忽略。
2. **`.NET Framework 4.8`(PowerShell 5.1)仍透传标准句柄**:`ProcessStartInfo` 在 `UseShellExecute = $false` 且未重定向标准流时,底层 `CreateProcess` 固定以 `bInheritHandles = TRUE` 调用,导致 `Antigravity.exe`(及后续拉起的 `language_server.exe` 等子进程)依然继承了父 `powershell.exe` 指向 `conhost.exe` / `OpenConsole.exe` 的 ...
Developer Debate & Comments
No active discussions extracted for this entry yet.
Adjacent Repository Pain Points
Other highly discussed features and pain points extracted from WhiteBr1ck/agy-powertools.
Frequently Asked Questions
Market intelligence mapped to Antigravity Powertools plugin restart mechanism on Windows 11..
What is the technical positioning of Antigravity Powertools plugin restart mechanism on Windows 11.?
Are engineers actively discussing Antigravity Powertools plugin restart mechanism on Windows 11.?
What are the foundational technologies related to Antigravity Powertools plugin restart mechanism on Windows 11.?
Engagement Signals
Cross-Market Term Frequency
Counts stored text matches for foundational terms like Windows 11 and powershell.exe in analysed public discussions. These counts do not measure adoption.
Stored text matches, not adoption or market-share measurements.
- Windows 11: 39 records
- powershell.exe: 2 records
- PowerShell 5.1: 2 records
- v2.16.4: 1 records
- Build 26220: 1 records
- Windows Terminal 1.25.3131.0: 1 records
- terminal residual issue: 1 records
- relaunch-antigravity: 1 records
- Windows Terminal tab: 1 records
- relaunch-antigravity.log: 1 records
- v2.16.4's Start-AgyDetached path: 1 records
- done agy_procs=6 verified=True: 1 records
- cmd start fallback: 1 records
- process tree: 1 records
- conhost.exe: 1 records
- OpenConsole.exe -Embedding: 1 records
- WindowsTerminal.exe -Embedding: 1 records
- Electron main process logs: 1 records
- Antigravity.exe: 1 records
- proxyEnabled: true: 1 records
- parent PID: 1 records
- CREATE_NO_WINDOW: 1 records
- ProcessStartInfo.CreateNoWindow = $true: 1 records
- PE Subsystem: 1 records
- IMAGE_SUBSYSTEM_WINDOWS_GUI: 1 records
- Win32 CreateProcess documentation: 1 records
- console (CUI) process: 1 records
- GUI process: 1 records
- .NET Framework 4.8: 1 records
- standard handles: 1 records
- UseShellExecute = $false: 1 records
- bInheritHandles = TRUE: 1 records
- ConPTY session: 1 records
- language_server.exe: 1 records
SaaS Metrics