Windows ACP server 1.4.0 remains running after stdin EOF

The official Windows x86_64 Antigravity ACP server 1.4.0 initializes successfully with ACP v1, but does not exit within 15 seconds after stdin closes. This occurred in both observed runs. The diagnostic repeat measured 15,005.4 ms in the bounded exit wait before cleanup.

The artifact comes from the ACP registry entry at the 1.4.0 update and its Google-hosted Windows x86_64 archive.

Environment and artifact

  • Native Windows x86_64, Windows build 26200.
  • Official standalone Windows server 1.4.0, launched directly as agy_acp_server.exe without arguments.
  • Valid Google LLC Authenticode signature.
  • EXE SHA-256: 2aa1897144a60aaa1b8b54fc0595511ac6e6ce0cf2a7b3166cb1d0e4d4005ab..
  • Official archive SHA-256: d737aad2d6388e071bc907db415c129a256915d275f436e68f10dcdf6af896d..

Reproduction and observed result

  1. Extract the official Windows x86_64 1.4.0 distribution with its supplied sibling files.
  2. Use a fresh isolated GEMINI_HOME, TEMP and TMP for the child process.
  3. Launch the absolute EXE path with redirected stdin, stdout and stderr, and UseShellExecute=false.
  4. Send only an ACP initialize request with protocol version 1 and empty client capabilities. Read its successful response.
  5. Close the child’s stdin. Continue draining output and wait up to 15 seconds for exit.

Expected: the stdio agent terminates after EOF and completes shutdown.

Actual: initialization returns agentInfo.version=1.4.0 and protocol version 1, but the exit wait times out. In the diagnostic repeat the server remained running for the full 15,005.4 ms wait. Its main Shutting down AGY ACP Server... log was absent from captured stderr. Cleanup then stopped only the recorded process tree after validating process birth identities.

Observed children were another agy_acp_server.exe and conhost.exe. No localharness_external process appeared in the two process snapshots. No authentication, session creation or model request was performed. The .par route was not executed.

Static close-wait defect and causal limits

The Python source embedded in this exact signed distribution contains the following close path:

Connection.close → NdjsonTransport.close → MessageSender.close → StreamWriter.close and StreamWriter.wait_closed.

The Windows stdio implementation constructs a custom _StdoutTransport and _WritePipeProtocol. _StdoutTransport.close() marks the transport closing and flushes stdout, but does not call _WritePipeProtocol.connection_lost(). That protocol’s close waiter is resolved through connection_lost, and MessageSender.close() awaits wait_closed().

Relevant embedded source locations are stdio.py lines 44 and 104 (_WritePipeProtocol, _StdoutTransport), sender.py line 74 (MessageSender.close), and core.py line 79 (run_agent). The server’s main shutdown log follows the awaited run_agent call.

This missing close notification is a static defect and strongly explains the observed pre-cleanup hang. I did not capture a live Python stack or pipe-handle state, so the exact runtime blocking frame remains unverified. Inherited handles or another pre-cleanup wait remain possible alternatives.

Evidence limits and proposed follow-up

The repeat retained stderr, the initialize response, timestamps, process names and birth identities, and cleanup readback. No stderr capture error was reported. Its stdout tail switches to the underlying stream after the first response line, so additional buffered lines at that transition are not proven absent. This is a bounded shutdown reproduction, not authentication or full runtime qualification.

No fix or workaround has been applied. I can prepare a pull request for the responsible public source once triage confirms its ownership and direction; no patch or branch exists yet. The likely fix area is making the Windows custom transport complete the protocol close notification, with a regression for EOF shutdown. This has not been implemented or tested.

Hi @bompus,

Welcome to the Forum,

Thanks for reporting this behavior. We will be passing this along to our team for a deeper look.

  • Reduce the ACP client’s post-EOF exit wait timeout on Windows (for example, to 1-2 seconds instead of 15 seconds) before terminating the agy_acp_server.exe process tree, since version 1.4.0 will not exit on stdin EOF alone.

  • Terminate the entire agy_acp_server.exe process tree on cleanup (both the parent PyInstaller bootloader process, the child agy_acp_server.exe Python process, and any localharness_external.exe children spawned during active sessions), because the shutdown hang prevents the server’s post-loop session teardown from running.