Skip to content

Read an idle Antigravity composer above a custom statusLine - #38930

Merged
nwparker merged 1 commit into
mainfrom
nwparker/agy-status-line-composer
Nov 6, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/agy-status-line-composer

Conversation

@nwparker

@nwparker nwparker commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

What changes for users

An Antigravity (agy) pane with a custom statusLine now reads as idle at its composer even when Orca has no fresh OSC 7501 status from agy. Before, tui-idle held forever in that case. That affected worker-start readiness, orca terminal wait --for tui-idle and orchestration mail delivery.

Cause

The composer_ready rule needs agy's bottom four rows to be ─── / > / ─── / ? for shortcuts. A command statusLine replaces the hint row with its own output, so only composer_not_shown (hold) matched.

The reporter can no longer reproduce this on recent builds. agy now reports state=idle over OSC 7501, and Orca ranks that above screen rules. The screen rule still decides wherever that report is missing or stale, though: older agy, or an agy that has been idle longer than the 30-minute first-party status freshness window, because agy sends idle only once. There it still held forever.

Fix

Add a composer_ready_custom_status_line rule to antigravity.json, priority 400, below composer_ready. It matches when:

  • the composer block (─── / > or edit-mode caret / ───) is followed by one to three status rows,
  • none of those rows contains a ── run, esc to cancel or for shortcuts, and
  • the row above the composer is not a braille spinner.

Captured from real agy 1.5.2 with --settings '{"statusLine":{…}}' (session-only; no user settings touched):

  • Idle: … / ─── / > / ─── / · Gemini · idle / · capture
  • Mid-turn: ⣷ Generating... / ─── / > / ─── / · Gemini · idle / · capture. The spinner row is the only busy marker, as the reporter described. The status line's own text can be stale.
  • /model picker: drawn between the composer and the status rows, so the run of rows breaks and the pane holds.

The default layout is unchanged: its busy hint row contains esc to cancel, so it can never match the new rule. The rule is also requiresQuiet, like composer_ready.

Verification

  • agent-state-rules suites: 116/116 pass, including new cases built from the captured idle, mid-turn and picker screens. The existing esc to cancel hold case still holds.
  • antigravity-readiness-transcripts (recorded agy 1.2.14 bytes, including the garbled-grid "never reads ready" cases): pass. A first draft of the rule failed the garbled-grid draft case, and the status-row test was tightened to refuse any ── run or hint text.
  • pnpm check:changed: 21 of 22 checks pass. The unit-test check failed only in unrelated suites on this heavily shared machine: cross-version harness lock contention, long-poll keepalive timing, and a chat lease-renewal warning under load.

Fixes #34707 (STA-12555)

Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​24 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​24
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​37 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​37

A command statusLine replaces agy's '? for shortcuts' hint row, so the
composer_ready rule never matched and readiness held whenever OSC 7501
could not decide (no fresh program status). Accept the composer when up to
three status rows sit below it, no busy hint is among them, and no braille
spinner row sits above it (agy's only turn marker in that layout).

Fixes #34707 (STA-12555)
@coderabbitai

coderabbitai Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 15 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 249f7726-622c-4e9c-b111-f97b572dde79
Commits

Reviewing files that changed from the base of the PR and between 95af900 and e190d14.

Files selected for processing: 2

  • src/main/runtime/agent-state-rules/agent-state-rules-engine.test.ts
  • src/main/runtime/agent-state-rules/antigravity.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@nwparker
nwparker merged commit a7e74b5 into main Nov 6, 2026
47 checks passed
nwparker added a commit that referenced this pull request Nov 6, 2026
… hides the hint

A command statusLine replaces agy's '? for shortcuts' row, so Continue in New Session waited the full 20s and pasted blind, and a CLI launch prompt burned 20s of its 60s. Also accept the rule / '>' / rule composer rows (the layout #38930 reads), still anchored to agy's own 2004h and revoked by the shell's 2004l. Checked against agy 1.5.2 captures: custom statusLine and default layouts fire; the trust dialog and signed-out startup do not.
nwparker added a commit that referenced this pull request Nov 6, 2026
… hides the hint

A command statusLine replaces agy's '? for shortcuts' row, so Continue in New Session waited the full 20s and pasted blind, and a CLI launch prompt burned 20s of its 60s. Also accept the rule / '>' / rule composer rows (the layout #38930 reads), still anchored to agy's own 2004h and revoked by the shell's 2004l. Checked against agy 1.5.2 captures: custom statusLine and default layouts fire; the trust dialog and signed-out startup do not.
nwparker added a commit that referenced this pull request Nov 6, 2026
… hides the hint

A command statusLine replaces agy's '? for shortcuts' row, so Continue in New Session waited the full 20s and pasted blind, and a CLI launch prompt burned 20s of its 60s. Also accept the rule / '>' / rule composer rows (the layout #38930 reads), still anchored to agy's own 2004h and revoked by the shell's 2004l. Checked against agy 1.5.2 captures: custom statusLine and default layouts fire; the trust dialog and signed-out startup do not.
nwparker added a commit that referenced this pull request Nov 6, 2026
… hides the hint

A command statusLine replaces agy's '? for shortcuts' row, so Continue in New Session waited the full 20s and pasted blind, and a CLI launch prompt burned 20s of its 60s. Also accept the rule / '>' / rule composer rows (the layout #38930 reads), still anchored to agy's own 2004h and revoked by the shell's 2004l. Checked against agy 1.5.2 captures: custom statusLine and default layouts fire; the trust dialog and signed-out startup do not.
nwparker added a commit that referenced this pull request Nov 6, 2026
… context (#38939)

* fix(antigravity): wait for agy's composer before pasting continuation context

The renderer's paste gate armed its 1.5s quiet window on any bracketed-paste enable, including the launching shell's own prompt, so a slow agy start received the handoff in cooked mode before its TUI ran. Wait for agy's '? for shortcuts' composer row while agy holds bracketed paste instead.

* fix(antigravity): accept agy's composer rows when a custom statusLine hides the hint

A command statusLine replaces agy's '? for shortcuts' row, so Continue in New Session waited the full 20s and pasted blind, and a CLI launch prompt burned 20s of its 60s. Also accept the rule / '>' / rule composer rows (the layout #38930 reads), still anchored to agy's own 2004h and revoked by the shell's 2004l. Checked against agy 1.5.2 captures: custom statusLine and default layouts fire; the trust dialog and signed-out startup do not.

* fix(antigravity): offer back pre-ready typed text the composer wait drops; move scanner tests

The agy composer wait has no quiet fallback, so a slow start now hits the
20s timeout and drops held type-ahead. The drop notice now carries a Copy
action with the typed text, and still shows when the user switched
worktrees, so it is never lost silently.

Move the composer-rows scanner cases into draft-paste-ready-scanner.test.ts
since main removed antigravity-readiness-transcripts.test.ts (#38973).

* chore(plugins): regenerate declarative testing bundle for antigravity config change
nwparker added a commit that referenced this pull request Nov 7, 2026
#39296)

A draft such as `dark mode: fix the toggle`, or agy's plan placeholder typed
verbatim, matches the composer caret row's edit-mode alternative. agy hides
`? for shortcuts` while the composer holds text, so composer_ready refused,
but composer_ready_custom_status_line (#38930) took agy's own
`[mode · ]model · effort` footer for a custom status row and answered idle.
Orca would then paste into the operator's unsent text.

Status rows may no longer be agy's built-in footer. The captured agy 1.2.7
screen of the plan placeholder typed as a draft comes from #23402.

Split from #23402.

Co-authored-by: seonghobae <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Antigravity worker readiness never settles when agy has a custom statusLine

1 participant