Repository navigation
fix(antigravity): recognize non-Gemini tui-idle prompts - #21231
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe Antigravity readiness detector now recognizes a standalone Priority: ➖ Normal Severity of issue fixed: Medium 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the main behavior change, implementation approach, linked issue, and validation commands. It omits most required template sections, including ELI5, Why, Visual Proof, Testing checkboxes and platforms, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist. Resolution Rewrite the description using the repository template. Add the missing required sections and complete the testing, visual-proof, cross-platform, review, checklist, and AI-disclosure information. Preserve the existing summary, linked issue, and validation details.
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 8a51c5ee-8a56-4016-9c02-fd01b2fa9824
📥 Commits
Reviewing files that changed from the base of the PR and between 0d23ea6 and 649c89cff613adc0e67a9822a7af4d1c1814e37d.
📒 Files selected for processing (3)
src/main/runtime/antigravity-readiness-transcripts.test.tssrc/main/runtime/terminal-wait-detection.test.tssrc/main/runtime/terminal-wait-detection.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review.
There was a problem hiding this comment.
ℹ️ Minor suggestions only — the detector change fixes the reported wedge. A couple of stale pins and one coverage gap are worth a look.
Reviewed changes
- Antigravity readiness is now model-independent —
findAntigravityReadyPromptIndexdrops thegemini-prefix requirement and resolves on any lone>after the lastantigravity cli. This matches the repo's own "attempt six" recommendation in the evidence doc. - Transcript expectations flipped — the API-key and hidden-account ready captures and the dismissed-picker capture lose their
knownDefect; the constructed non-Gemini test now asserts ready. - Dialog fixtures relabeled —
terminal-wait-detection.test.tsstartup dialogs now carry> Labelselection rows, matching the captured trust/model-picker/palette dialogs.
I re-ran the two changed suites (62 passed, 10 skipped) and traced the derived wait text for the captured transcripts. The fix does what the issue asks, and no captured case regresses: command palette, mid-turn, and trust stay refused. Two follow-ups:
ℹ️ The model-picker pin now explains the wrong cause
The picker is still read as ready, which is correctly pinned, but the knownDefect string at antigravity-readiness-transcripts.test.ts:88 still says its Gemini rows satisfy "the model rule" — a rule this PR deletes. On the derived tail it is a retained composer caret, not a model row, that keeps the picker ready (I measured one lone > in the picker's wait text, resolving ready with no blocked reason). The file header at lines 9-10 is stale the same way: it claims "four cases are pinned" and that the detector "refuses the ready screen", but only two pins remain and the ready screens are now accepted. These strings are what the next maintainer reads to understand the residual defect.
Technical details
# Residual false-ready cause is now the retained caret
## Affected sites
- src/main/runtime/antigravity-readiness-transcripts.test.ts:9-10 — header says four pins / refuses ready screens
- src/main/runtime/antigravity-readiness-transcripts.test.ts:88 — knownDefect cites the removed model rule
## Required outcome
- Update the header count and wording, and describe the picker pin as "accepted via a retained composer caret from before the picker opened".
## Evidence
- Derived wait text for `antigravity-dialog-model-picker.txt` has exactly one lone `>` and `isKnownReadyPromptPreview` returns true with `detectTerminalWaitBlockedReason` null.
- `docs/reference/antigravity-readiness-evidence.md:93-96` already documents the stale-composer co-occurrence for this dialog.ℹ️ Evidence doc still documents the retired model rule as shipped
docs/reference/antigravity-readiness-evidence.md:71 and its Attempt-1 table still state the detector requires normalized.startsWith('gemini', trimmedStart). That is no longer the shipped behavior, and the transcript suite imports this file as the checklist, so it is the place a future reader will look. Recording that attempt six shipped — and that the sign-in/theme/privacy/update dialogs remain uncaptured — keeps it authoritative.
Technical details
# Stale reference in the evidence doc
## Affected sites
- docs/reference/antigravity-readiness-evidence.md:71 — presents the gemini rule as current
- docs/reference/antigravity-readiness-evidence.md:236-263 — § "Can attempt six be written?" now reads as a proposal rather than shipped
## Required outcome
- Mark the retired rule and note attempt six as shipped, keeping the doc's own caveat that the uncaptured dialogs still need transcripts.DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
649c89c to
f335bad
Compare
Sync update (
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Model picker now vetoes the stale caret —
isKnownReadyPromptPreviewrefuses readiness when aSwitch Modelsurface sits after the ready caret, and resumes onceExited /model commandappears (terminal-wait-detection.ts:53-61,:173-179). - Picker transcript unpinned —
antigravity-dialog-model-pickernow assertsexpectReady: falsewith noknownDefect, dropping the file header from four pins to one. - New discriminating test — a constructed stale-caret-plus-picker fixture that fails without the guard (
terminal-wait-detection.test.ts:371-382). - Evidence doc retitled "Attempt six is shipped" — the retired model rule is marked as such and the picker veto recorded as shipped behavior.
I re-ran both changed suites (63 passed, 10 skipped) and pnpm tc:node (clean). The esc-dismissed capture's metadata confirms the exit marker is emitted on the only captured dismissal path, so the veto does not wedge a legitimate ready screen. Both prior review threads are addressed and resolved.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
I tested the detector at f335bad4dd5af8020e865f7e427e4214166c7d4c against the raw Expected: false. Actual: true. The same visible-screen check is also unsafe on current main; this PR does not resolve that case. ELI5: The user has started writing a message but has not sent it. Orca sees the Please include this captured draft in the regression set and distinguish an empty composer from a continuation row before treating this as ready for merge. The model-picker exception alone does not cover it. I am investigating the broader Antigravity migration and have preserved a regression for this visible-screen path locally. No successful end-to-end worker delivery is claimed by this check. |
|
Fresh evidence from the installed I captured both, and a separate session where the exact plan hint was typed as an unsent draft. The placeholder and typed row have the same text and styling. Their footer differs: Raw recordings, metadata, and passing replay tests are in draft #21613. That PR fixes only Orca's adopted-terminal visible-screen fallback. The regular output-stream path remains open, so it is not a replacement for the full readiness work here or a claim of successful worker delivery. ELI5: both an empty input box and a half-written message can display the same sentence. Looking for that sentence—or only for |
An unsent composer can show `> draft` then an indented `>`. That continuation is not an empty input box, so tui-idle must stay false.
f335bad to
360497d
Compare
|
Thanks for the 120x40 replay of the unsent composer. The stream matcher no longer treats an indented wrap Plan / accept-edits empty composers (placeholder text plus |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Wrap-continuation caret no longer reads ready —
findAntigravityReadyPromptIndexnow requires the lone>to sit at column 0 and vetoes it when the previous non-empty line is a longer> draft, so the continuation line of an unsent wrapped draft cannot satisfytui-idle(terminal-wait-detection.ts:146-174). - Regression test added — a
> abc/ indented>screen assertsisKnownReadyPromptPreviewis false (terminal-wait-detection.test.ts:411-423); it fails on the previous revision.
I re-ran both changed suites (64 passed, 10 skipped): the captured ready, dismissed and picker transcripts are unaffected, and the single remaining KNOWN DEFECT pin is unchanged.
ℹ️ Evidence doc does not record the caret-position refinement
The transcript suite treats docs/reference/antigravity-readiness-evidence.md as its checklist, but the shipped-rule summary there still describes the marker as a line whose entire trimmed content is > with no mention of the column-0 requirement or the wrapped-draft veto. The wrap-continuation case is a constructed fixture rather than a captured screen, and the "what is still unknown" list does not name it.
Technical details
# Evidence doc trails the new caret rule
## Affected sites
- docs/reference/antigravity-readiness-evidence.md:244-247 — describes the marker as a trimmed lone `>` with no column-0/draft condition
- docs/reference/antigravity-readiness-evidence.md:259-262 — "still unknown" list omits the wrapped-draft case
## Required outcome
- Note the column-0 requirement and the wrapped-draft veto, and flag the wrap case as constructed rather than captured.DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Independent verification update:
Scoped verdict: Approve the model-independent POSIX/readiness matcher, with the issue’s Windows shell-process/agent-leaf problem remaining outside this PR. That Windows process-tree behavior needs a separate change and validation. |
|
Verification update (2026-09-20):
Merge verdict: Approve the matcher change after normal full CI. The standalone composer-caret signal is model-independent and the captured transcript regressions pass. This verifies readiness detection only; authenticated generation, rendered Orca reconnect behavior, and Windows/WSL/SSH execution remain outside this PR. |
|
Review update after inspecting the complete patch: the matcher now uses the captured bare composer caret, rejects an active Verification remains 64 readiness/transcript tests passed with 10 documented skips, |
|
Fresh awin evidence complements this matcher: a real agy 1.2.7 TUI authenticated with the refreshed machine-level key, rendered |
|
I reran the repository PR Checks workflow; it is currently queued. The PR test LoC workflow is also being rerun. If GitHub keeps both behind fork-workflow approval, a maintainer approval is the only remaining CI unblock. Local tests, typecheck, quality, and real awin TUI verification are already recorded above. |
|
Full CI rerun 35438649044 completed with one actionable regression:
This is a real stale characterization test/contract mismatch that must be resolved before merge. My verdict is now do not merge pending an explicit fixture/contract fix; the real awin TUI evidence supports the new bare-caret behavior, so the likely fix is to update the stale test to represent a non-ready later screen rather than revert the matcher. |
|
I pushed commit Local validation on the PR head: |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Stale spec expectation aligned — the
terminal-handles-and-agent-status-part-03test that pinned rejection of a later Antigravity header with a prompt but no model line is renamed and now asserts recognition, matching the model-independent detector shipped in424a9f6981. It remains discriminating: with the pre-PR detector the later header has nogeminiline after it, sofindAntigravityReadyPromptIndexwould returnnulland the flipped assertion would fail.
I re-ran the target test (recognizes a later Antigravity header with a prompt but no model line) — it passes. This delta is a single test-expectation alignment with no production behavioral surface.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
The corrective commit The stale characterization test now explicitly matches the shipped bare-caret contract. Merge verdict: approve matcher scope in stack order. Windows/WSL/SSH/remote supervised-worker behavior remains outside this PR. |
Review-bot follow-upThe automated review reported description-template/docstring-coverage warnings, but no actionable code defect. The PR now has the requested ELI5, scope, platform limits, and verification evidence in the discussion. The changed functions are small predicate/scheduling paths covered by focused tests; adding boilerplate docstrings would not change behavior or improve the contract. CI, typecheck, static analysis, and the relevant runtime tests are green. The remaining manual/remote scenarios are explicitly documented as out of scope for this PR. |

Summary
Allow Antigravity
tui-idlereadiness to resolve for non-Gemini models and logo-prefixed model rows.Fixes #21110
Validation
pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/terminal-wait-detection.test.ts src/main/runtime/antigravity-readiness-transcripts.test.tspnpm tc:nodeoxfmtandoxlint