Skip to content

consult: harden agy integration — Gemini lane silently drops out (upstream agy non-TTY stdout bug #76) #1020

@amrmelsayed

Description

@amrmelsayed

Scope

This tracks codev's consult integration with the agy CLI. The empty-output root cause is an open upstream agy bug (google-antigravity/antigravity-cli#76); codev cannot fix that directly, but it can work around it and stop misreporting it.

Root cause (upstream, not codev)

google-antigravity/antigravity-cli#76agy --print / -p silently drops stdout when stdout is not a TTY (pipe, redirect, subprocess): exit 0, no stderr, a full model round-trip but zero output. consult spawns agy with piped stdout (spawn(bin, args, { stdio: ['ignore', 'pipe', 'pipe'] }), consult/index.ts:814), so it hits this on every run, and the empty output is then treated as a non-blocking skip.

  • Status: open (filed 2026-05-21), no maintainer fix.
  • Reproduced here on agy 1.0.6 / macOS (the issue was first filed against 1.0.0 / Windows), so it is cross-platform and persists across versions.
  • agy 1.0.6 has no --output / --format flag (only --log-file); issue Update projectlist: mark spec 0042 as committed #76 requests --output <path>, --format json, or unconditional stdout flush, none shipped yet.

Correction to the earlier hypothesis: --sandbox is not the cause. Every empty reproduction was piped / captured (non-TTY), which is #76, independent of --sandbox. (The separate browser/key popup some runs trigger is agy's re-auth flow, not the empty-output cause.)

Codev-ownable slice

  1. Misleading diagnosis. The skip message says "agy not authenticated / install the CLI" when the real cause is the non-TTY stdout drop and auth is fine. Fix agySkipContent to name the likely cause (and link Update projectlist: mark spec 0042 as committed #76).
  2. Silent degradation. A 3-way consult quietly becomes 2-way (Codex + Claude) with no loud signal (consult/index.ts:858-874). Surface the dropped lane so it is not mistaken for a full 3-way.
  3. Workaround (the only way to make the lane actually work before the upstream fix). Run agy under a pseudo-TTY so its stdout is a terminal (defeats the Update projectlist: mark spec 0042 as committed #76 drop), or adopt agy's --output / --format once upstream ships it. Track Update projectlist: mark spec 0042 as committed #76 as the dependency.

Evidence

Upstream (not codev)

The real fix is google-antigravity/antigravity-cli#76. Not codev's to fix; codev tracks it and works around it. Related: google-antigravity/antigravity-cli#115, google-gemini/gemini-cli#27466.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/consultArea: Consult CLI / consultation tooling

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions