Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(antigravity): handle native sign-in URLs on stderr #9514

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/9514/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Antigravity 1.1.1 writes its Google sign-in URL to stderr. T3 only recognized the native message on stdout, so setup could lose the link. Normal work could also wait for interactive sign-in instead of reporting that sign-in is required.

Accept the native message on stderr while keeping support for older runtimes and T3's browser helper. Validate URLs without logging other stderr. A rejected sign-in callback now fails pending ACP requests and stops the owned process.

Verified: 103 focused tests, targeted lint, and server typecheck passed. Tested the real Linux 1.1.1 runtime in empty profiles with a silent browser helper. Native stderr delivered the setup URL, normal work failed with sign-in required, and both processes stopped. No account was signed in. Windows execution remains unverified.

Created with GPT-6 Astra (preview) in Codex.

Note

Fix Antigravity ACP runtime to handle native sign-in URLs on stderr

  • AcpSessionRuntime now lets the onStderr callback fail with an AcpError; on failure, in-flight logged ACP requests race against a deferred stderr-failure channel, the runtime records the error as its termination cause, and the owned child process is forced to stop.
  • makeAntigravityAcpRuntime always installs makeAntigravityStderrHandler instead of only for authentication launches, so every runtime processes stderr sign-in markers.
  • makeAntigravityStderrHandler now parses native sign-in URLs (Antigravity 1.1.1) in addition to browser-helper URLs, makes the authorization callback optional, returns a sign-in-required error when no callback is supplied, and propagates callback failures instead of discarding them.
  • The stderr line-length bound now accounts for whichever authorization prefix is longer.
  • Behavioral Change: an onStderr handler failure now terminates the runtime and fails subsequent connection checks; previously stderr handler errors were discarded. Reviewers should check the deferred channel logic in AcpSessionRuntime.ts and the callback-failure propagation in antigravityAuthSupport.ts.
Macroscope summarized c301cfc.
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire13.7 KiB13.5 KiB−201 B (−1.4%)15.1 KiB✅
      CodexThread snapshot wire7.0 KiB7.0 KiB+9 B (+0.1%)7.3 KiB✅
      CodexLive turn WebSocket wire6.7 KiB6.5 KiB−210 B (−3.1%)7.8 KiB✅
      CodexLive turn WebSocket decoded58.5 KiB57.0 KiB−1.5 KiB (−2.6%)66.4 KiB✅
      CodexLive turn messages108−2 (−20.0%)21✅
      ClaudeTotal thread wire13.7 KiB13.8 KiB+21 B (+0.1%)15.1 KiB✅
      ClaudeThread snapshot wire7.0 KiB7.0 KiB+4 B (+0.1%)7.3 KiB✅
      ClaudeLive turn WebSocket wire6.7 KiB6.7 KiB+17 B (+0.2%)7.8 KiB✅
      ClaudeLive turn WebSocket decoded59.3 KiB59.3 KiB0 B (0.0%)66.4 KiB✅
      ClaudeLive turn messages10100 (0.0%)21✅

      Baseline: f25e442 · PR result: c301cfc · Source CI: success

      Scenario and decoded snapshot size

      10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

      • Codex decoded thread snapshot: 113.8 KiB
      • Claude decoded thread snapshot: 114.5 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

    3. Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This fix changes the default Antigravity authentication and ACP process lifecycle behavior, including OAuth URL handling, sign-in failures, and child-process termination. Because authentication-sensitive runtime behavior is affected, human review is warranted.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).

Sign in to join this conversation.