#8685·omnigent

[Bug] antigravity-native: long prompts are pasted but never submitted when agy hides the start of the draft behind "↑ N more lines"

Author: hendrilaCreated Oct 1, 2026Updated Oct 1, 2026
LabelsBugP2-mediumtriagedvalidated:reproducedcomp:harness-t2

Summary

With the antigravity-native harness, a long prompt is pasted into the agy input box correctly but never submitted. The turn fails with:

sub-agent turn failed: inner executor error: Could not deliver the turn to the agy TUI:
agy did not render the pasted message in its input box before submit; pane_tail: ...

The draft is left sitting in the input box. Pressing Enter in the pane by hand submits it and the agent runs normally.

Cause

The paste-render check looks for the start of the prompt on a visible line, but agy's input box shows only the tail of a long draft and hides the beginning behind a ↑ N more lines row.

  • _submit_needle takes up to 24 characters from the first stripped line of at least 4 characters (harnesses/antigravity_native/bridge.py, around lines 1323-1326 in 0.16.0).
  • The check then requires that needle, or a [Pasted text #N ...] placeholder, on one visible line between the input box borders (around lines 1404-1420). _AGY_PASTE_PLACEHOLDER_RE is \[Pasted text #\d+[^\]]*\], so ↑ 16 more lines is not recognised.
  • After the 5-second poll, an idle session raises the error above before _submit_and_verify is reached (around lines 1652-1672), so Enter is never sent.

Pane capture of a stranded draft (80x24, prompt text replaced):

────────────────────────────────────────────────────────────────────────────────
> ↑ 16 more lines
  <line 17 of the pasted prompt>
  ...
  <last line of the pasted prompt>
────────────────────────────────────────────────────────────────────────────────
                                          accept-edits · Gemini 3.8 Flash · high

The opening of the prompt is not on screen, so the needle can never match. The pane_tail in the error shows only the last 12 non-blank lines, which leaves out the ↑ N more lines row and makes it look as if the draft rendered normally.

Reproduction

  1. Dispatch a turn to an antigravity-native sub-agent whose pane is at the default 80x24.
  2. Use a prompt long enough to overflow agy's input box: for example about 1,500 characters over several paragraphs with a numbered list. A single paragraph of about 900 characters also failed.
  3. The turn fails with the error above; the draft remains in the input box.

A one-line prompt of about 200 characters to the same agent is delivered. There is no fixed length limit: it depends on pane size and wrapping.

Relation to #8625 / #8626

#8625 is the same error when word-wrap splits the needle across visible lines, and #8626 joins visible lines to tolerate that. That does not cover this case: here the needle is not visible at all, because it is above the input box's viewport.

Possible fixes

  • Treat agy's ↑ N more lines overflow row as evidence that the draft rendered, as the paste placeholder already is.
  • Or verify against the end of the prompt, which is what agy keeps visible, instead of the start.
  • Include the full input-box region in the error's pane_tail so the overflow row is visible in the failure.

Versions

  • Omnigent 0.16.0 (uv tool install)
  • Antigravity CLI 1.2.14
  • tmux 3.7c
  • macOS (Darwin 27.0.0)

Workaround

Send a short one-line prompt that points at a file containing the full instructions.