magpie icon indicating copy to clipboard operation
magpie copied to clipboard

agy cli bug

Open peanut-kernel opened this issue 2 weeks ago • 1 comments

magpie version

0.1.4584

Where

GUI

OS

Windows11

Agent, provider and model

No response

Steps to reproduce

powershell启动agy命令,使用/model查询出的模型还是反重力客户端配置的模型。文档上面说的为了让直接输入 agy 就能用,agy 使用 magpie 模型期间,magpie 会在每个 shell 的配置文件里添加一个名为 agy 的函数。这个agy函数使用了兜底策略agy.exe

image 下面是chatgpt分析的原因 image

What happened, and what you expected

powershell能够正常读取agy cli配置的模型

Error text or logs


peanut-kernel avatar Nov 20 '26 07:11 peanut-kernel

Duplicate of #6084 - the root cause is that magpie.exe is a GUI-subsystem binary (PE subsystem 2) and PowerShell does not wait for it, so @(& magpie.exe agy env) comes back empty, $start.model stays unset and the agy profile function falls through to a plain agy launch (real Antigravity account, real model list). Not a model-config problem. #6084 has the measurements and a proposed fix.

Wenjunyun123 avatar Nov 21 '26 17:11 Wenjunyun123