Skip to content

fix(runtime): recognize Antigravity 1.1.17 ready prompt - #15840

Closed
DemonZhou wants to merge 2 commits into
stablyai:mainfrom
DemonZhou:fix/antigravity-accept-edits-readiness
Closed

DemonZhou wants to merge 2 commits into
stablyai:mainfrom
DemonZhou:fix/antigravity-accept-edits-readiness

Conversation

@DemonZhou

@DemonZhou DemonZhou commented Aug 22, 2026 •

Copy link
Copy Markdown

ELI5

Antigravity CLI 1.1.17 no longer keeps its ready prompt as a bare >. The text after > changes with the active mode — for example, Accept-edits and Plan. Orca only recognized the old bare prompt, so supervised workers timed out even though the terminal was ready. This keeps the existing banner/model gates and treats the leading > as the stable prompt marker.

What Changed

  • Preserve the existing bare-> Antigravity ready prompt.
  • Recognize any trimmed Antigravity prompt line beginning with > after the existing Antigravity banner and Gemini model checks.
  • Add parameterized regression coverage for the observed Accept-edits and Plan mode screens without parsing a specific mode name or description.

Why

findAntigravityReadyPromptIndex() required the trimmed prompt line to contain exactly one character. Antigravity 1.1.17 appends mode-dependent status text, so tui-idle did not resolve and worker-start failed at agent_readiness.

The mode label and description are not stable. The stable contract used here is the existing Antigravity banner, a Gemini model line, and a subsequent trimmed line beginning with >.

Linked Issue

Fixes #15838

Related but independent from #10740: that PR changes which Antigravity prompt occurrence wins after a dismissed startup modal. This PR changes which prompt shapes are recognized. Both touch the same matcher hunk, so a mechanical rebase may be required depending on merge order.

Visual Proof

N/A — this only changes runtime terminal-text readiness detection; there is no Orca UI change. The Accept-edits capture is attached to #15838; the follow-up Plan mode capture confirmed that the text after > varies by mode.

Testing

  • Red: with the Accept-edits-only implementation, Accept-edits passed while the Plan mode case failed with Error: timeout.

  • Green: both parameterized mode cases pass after matching the leading >.

  • 14 passed: all current Antigravity tests in orca-runtime.test.ts.

  • Oxlint passed for both changed files.

  • git diff --check passed.

  • An earlier full orca-runtime.test.ts run completed 1180 tests and had 5 environment-bound failures (EPERM for /tmp or C:\tmp, plus an unrelated legacy runtime-graph timeout); the full file was not rerun after the mode follow-up.

  • Node 24 typecheck passed on the original PR revision; the follow-up simplifies the same string predicate and was checked with Oxlint.

  • Dependency postinstall could not rebuild optional windows-native-registry because Visual Studio Build Tools are not installed; full pnpm build was not run.

  • I manually tested these changes locally

  • Automated tests added/updated

AI Disclosure

OpenAI Codex was used for diagnosis, implementation, targeted verification, and independent Standards/Spec reviews.

Review

  • Spec: Pass. The implementation follows the requested mode-agnostic leading-> contract and retains the Antigravity banner/model gates.
  • Cross-platform: string-only matching on normalized PTY text; no OS-specific paths or APIs.
  • Local / SSH / remote: the existing shared runtime matcher is changed; no transport, RPC, or ownership semantics change.
  • Agent compatibility: matching remains inside the Antigravity banner + Gemini model probe; other agents are unaffected, and legacy bare-> coverage still passes.
  • Performance: one character check inside the existing bounded line scan; no new allocation, polling, timer, or process probe.
  • Security: blocked-prompt detection is unchanged.
  • UI / mobile: N/A; no rendered UI or mobile code changed.

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

The change is intentionally limited to the existing Antigravity ready-prompt predicate and its regression test. No launch command, PATH, permission setting, timeout, or orchestration lifecycle behavior changes.

Checklist

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Author

  • X / Twitter: N/A

@DemonZhou
DemonZhou marked this pull request as ready for review August 22, 2026 02:15
@coderabbitai

coderabbitai Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 8e120743-36b4-4656-ab29-5861c5c2e20a

📥 Commits

Reviewing files that changed from the base of the PR and between e7b047f and 9599626.

📒 Files selected for processing (2)
  • src/main/runtime/orca-runtime.test.ts
  • src/main/runtime/orca-runtime.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The runtime now detects prompt lines when the trimmed line starts with >, even when additional characters follow. A parameterized test covers Antigravity CLI 1.1.17 Accept-edits and Plan prompts. The test verifies tui-idle, the expected terminal handle, satisfied status, and running status.

Merge Risk: ⚪ Minimal · up to 95996

This change broadens Antigravity readiness detection to support mode-specific prompts while preserving the existing validation gates and adding regression coverage. No actionable merge-blocking risk remains beyond normal checks and review.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the runtime fix for Antigravity 1.1.17 ready-prompt detection.
Description check ✅ Passed The description covers the required sections, explains the fix, links issue #15838, and documents testing and limitations.
Linked Issues check ✅ Passed The matcher update and parameterized readiness tests address the primary coding objective in issue #15838.
Out of Scope Changes check ✅ Passed The changes are limited to Antigravity prompt detection and regression coverage, with no unrelated behavior changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 too large.)

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

Comment @coderabbitai help to get the list of available commands.

@nwparker

Copy link
Copy Markdown
Contributor

Thank you for tracking down the Antigravity 1.1.17 prompt change. The readiness rules in #24348 now accept the mode text after the caret, so this is covered and we're closing as superseded.

@nwparker nwparker closed this Oct 24, 2026
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 CLI 1.1.17 ready prompt no longer matches tui-idle, causing worker-start agent_readiness timeout

2 participants