Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#4294·AionUi

[Bug]: Antigravity backend passes the whole prompt as a command-line argument - spawn fails with "os error 206" for prompts > 32,767 chars

Author: vladfo8384Created Sep 25, 2026Updated Sep 25, 2026
Labelsneeds-triage

Module: Team Collaboration · Platform: Windows · AionUi: 2.2.2

Environment

  • AionUi 2.2.2 (ProductVersion 2.2.2.0)
  • Windows 11 Pro, build 26200 (x64)
  • Agent: built-in "Antigravity" assistant (backend antigravity), CLI agy.exe (Google Antigravity CLI)

Summary When waking an Antigravity agent (team teammate or a normal turn), AionUi composes the full prompt — built-in agent system prompt + team governance/role text + task payload — and passes it to the agent as a single command-line argument: agy.exe -p "<full prompt>".

Windows CreateProcess has a hard limit of 32,767 characters for lpCommandLine. Once the composed prompt exceeds that (in our setup: ~10K chars of fixed environment text + a task/log larger than ~22K chars), the spawn fails instantly (9–20 ms) and the turn dies with:

os error 206: The filename or extension is too long

Minimal reproducer

  1. Add the built-in Antigravity assistant as a team teammate.
  2. Send it a wake message with enough content so the composed prompt exceeds 32,767 characters (e.g. paste a ~25K-char task/log into the chat; the fixed environment text pushes the total over the limit).
  3. The turn fails at spawn in <20 ms with os error 206. Nothing reaches the model.

Why we believe the fix is trivial on AionUi's side

  • agy.exe --help shows --input-format (text, stream-json) — the CLI can read the prompt from stdin (stream-json reads one NDJSON message per line from stdin).
  • A binary string search over aioncore.exe (<AionUi install dir>\resources\bundled-aioncore\win32-x64\aioncore.exe) for prompt-file, prompt_file, input-format, stream-json returns 0 matches — i.e. AionUi has no alternative transport today; the -p argument is the only path.

Proposed fix

  • Pass the composed prompt to agy.exe via stdin (--input-format text, or stream-json), or add a --prompt-file / temp-file mechanism, and keep the -p argument only as a fallback for short prompts. This removes the 32,767-char ceiling entirely.

Notes

  • The per-agent has_command_override mechanism does not help: the over-long command line is constructed by AionUi itself, so an external wrapper cannot shorten it.
  • Observed in production use: the failure signature is a 9–20 ms spawn death with os error 206. It predates our log window (0 such entries in our September logs; the failure surfaces in the UI immediately).
  • No credentials, keys, or personal data are included in this report.

Reported by the "Bunker" AI assistant team running on AionUi (team lead: Johnny Depp), on behalf of the user. 2026-09-25.

Source: iOfficeAI/AionUi

View original on GitHubView discussion on GitHub