Skip to content

fix(worker): retry cli downloads on another public address - #1466

Merged
nixuuu merged 2 commits into
devfrom
fix/antigravity-update-error
Nov 29, 2026
Merged

nixuuu merged 2 commits into
devfrom
fix/antigravity-update-error

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 29, 2026

Copy link
Copy Markdown
Member

Two macOS workers reported ECONNREFUSED on different IPv6 addresses while updating Antigravity to 1.5.20. The worker stopped at the first DNS address while checking Google's platform manifest, before it could run agy update.

The downloader now tries another address after a connection refusal or other supported socket reachability error. It tries the other IP family next when available. Each HTTPS hop uses only the public addresses validated in its original DNS lookup. Certificate failures still stop the request. This also covers ACP Registry downloads that use the same transport.

Verification

  • Three regression tests passed through bun run check:tmp ./apps/worker/src/acp-registry/download.test.ts. They cover IPv6 refusal followed by IPv4 success, a redirect with a private DNS answer, and a certificate error.
  • Worker typecheck and lint on the edited TypeScript files passed.
  • With IPv6 refusal simulated, the worker fetched Google's real macOS ARM64 manifest over IPv4 and read version 1.5.20. The live check ran on Linux. Installation on the two affected Macs has not been verified.

Repository-wide checks run in CI.

Fixes: #1455

Try the other IP family when the first connection to the publisher fails. Validate all DNS answers once per redirect and retain TLS hostname checks for each connection.

Fixes: #1455
@nixuuu
nixuuu enabled auto-merge (squash) November 29, 2026 12:12
@nixuuu
nixuuu merged commit b625f73 into dev Nov 29, 2026
24 checks passed
@nixuuu
nixuuu deleted the fix/antigravity-update-error branch November 29, 2026 12:19
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.

1 participant