[Bug]: Antigravity backend passes the whole prompt as a command-line argument - spawn fails with "os error 206" for prompts > 32,767 chars
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), CLIagy.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 longMinimal reproducer
- Add the built-in Antigravity assistant as a team teammate.
- 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).
- 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 --helpshows--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) forprompt-file,prompt_file,input-format,stream-jsonreturns 0 matches — i.e. AionUi has no alternative transport today; the-pargument is the only path.
Proposed fix
- Pass the composed prompt to
agy.exevia stdin (--input-format text, or stream-json), or add a--prompt-file/ temp-file mechanism, and keep the-pargument only as a fallback for short prompts. This removes the 32,767-char ceiling entirely.
Notes
- The per-agent
has_command_overridemechanism 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