Files
magpie/internal/provider
yetone a922e3864e provider: moving Antigravity onto agy goes through Antigravity's proxy (huiqiang6 on X)
huiqiang6 on X: in the Docker image, moving Antigravity's accounts onto
"Antigravity (local agy CLI)" always fails at installing agy.

Reproduced with ghcr.io/yetone/magpie:latest (v0.1.4377) on
xiaomi-gpu's Docker, with the owner's real Antigravity account in
plugin-auth.json:
- plain network, amd64 and emulated arm64: the move works (26s, 39s);
  agy 1.5.10 installs into /config/data/magpie-agy-cli.
- Google unreachable directly, reachable only through a squid proxy set
  on Antigravity alone (providers.json proxy, as a user in China sets
  it): the move fails in 7s, every time, with "installing Antigravity
  CLI failed (couldn't reach Antigravity's release server: Unable to
  connect…); install it yourself with `curl … | bash`".

Cause: MoveToAgy ran agy's install and the accounts' import under
agy-cli's proxy, which a new agy-cli doesn't have, so both went direct
and never through the proxy Antigravity's requests used.

Now MoveToAgy first carries Antigravity's proxy onto agy-cli (its
provider proxy while agy-cli has no account and no proxy of its own;
each moving account's own, or Antigravity's, as an account proxy where
agy-cli would take another), then installs agy and imports through
agy-cli's. A proxy the user set on agy-cli is kept.

Run:
- go test ./internal/provider -run Agy on mote: ok. The two new proxy
  tests are red with the carry and Via lines taken out (installed
  through "", imported through "").
- A linux/amd64 nogui build of this tree in the same blocked container
  (fresh volume, same account, same proxy): the move gives
  kumw95ya25@gmail.com "added" in 26s, agy 1.5.10 installed,
  providers.json has agy-cli's proxy, and a chat request to
  agy-cli/gemini-3.8-flash answers "OK", squid logging the CONNECTs.
- gofmt -l; go vet GOOS=linux -tags nogui ./..., GOOS=windows ./...
- Full suite: not run before the push. mote and mica were each running
  another session's suite; it runs after, one per machine, and a red
  gets its own issue.

Not tried: native arm64 hardware with the proxy; the reporter's own
config (the tweet has no screenshot, so their proxy setup is inferred);
an agy-cli that already has accounts and no proxy (the move's import
then goes through agy-cli's, direct; the moving accounts still keep
their proxy afterwards). Moves that already failed simply work on retry;
none half-moved anything.
2026-11-17 21:43:12 +08:00
..