Repository navigation
fix(commit-message): stop Antigravity treating --sandbox as the commit prompt - #14157
brennanb2025 wants to merge 1 commit into
Conversation
|
Warning Review limit reached
Next review available in: 3 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAntigravity commit-message prompts now use argv delivery. The prompt follows 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
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 |
agy's --print/-p/--prompt is a required string flag. Orca invoked `agy --print --sandbox --model ...` with the commit prompt on stdin, so Linux agy 1.1.12 treated --sandbox as the user request. Keep the prompt immediately after --print so recipe CLI arguments cannot land between the flag and its value.
bdaa9ec to
9a425b5
Compare
|
Re-audited and rebased the single fix onto current Final evidence:
The flag-plus-value implementation remains the smallest standard fix: Scope remains 3 files / one commit. No UI, remote-wire, Git, provider, folder-workspace, or interactive Antigravity behavior changed. Not merged. |
|
code 2 on Antigravity CLI version Antigravity CLI command failed with code 2: Error: --print took "--sandbox" as its prompt, so the intended prompt was left starting with Because Go's flag parser binds --sandbox as the value for --print, agy >= 1.1.18 detects this and exits with code 2. Steps to Reproduce
Expected Behavioragy should execute in headless mode, accept the prompt, and return the generated commit message. Suggested FixUpdate the argument builder in Orca's Antigravity integration from: to either: Environment• Orca Version: 1.4.188 |
|
Review verdict: Do not merge as-is; superseded by #21606. Its older argument/prompt workaround is incorporated into the maintained source-control migration, which now covers current agy defaults and generation compatibility. |
|
Closing as superseded by #21606, which merged on 2026-09-21. The review notes on this PR confirm the older workaround was incorporated into that maintained source-control migration. |
ELI5
When Orca asked Antigravity to write a commit message, it accidentally told the CLI that the job was
--sandboxinstead of the real prompt. This change puts the commit-message text in the flag Antigravity actually reads.What Changed
Antigravity commit-message generation now passes the prompt as the value of
--printand keeps--sandboxas a later boolean flag:--printstays immediately followed by the prompt so extra recipe CLI arguments cannot land between the flag and its value.Why
Linux
agy1.1.12 treats--print/-p/--promptas a required string flag. Orca previously spawned:--printconsumed--sandboxas the user request. That matches the report: Antigravity answered as if the user asked about--sandbox. A trailing--printwith no value exits 2 and prints help; stdin is not the print-mode prompt.Linked Issue
Fixes #14059
Fixes STA-4011
Visual Proof
N/A — no Source Control chrome change. The bug is the argv Orca passes to
agy. Before/after invocation on a throwaway Linux SSH target with a realdemo-projectrepo:Before (origin/main):
After:
--print's next token is the real prompt, not--sandbox.Testing
agy1.1.12 on a throwaway Docker SSH target (linux-arm64):--printwithout a value → exit 2 + help;--print --sandbox→ parsed (auth path), proving--sandboxis the print value.pnpm build:relay, unique user-data, identity verified)./work/demo-project(local git-bundle fallback after GitHub HTTPS clone needed auth), staged a real change, clicked Generate commit message with AI.agyon the remote PATH captured argv/stdin before and after the fix.linux-arm64, already installed, reconnect succeeded. No commit-message spawn errors in app logs.commit-message-agent-spec,commit-message-plan,commit-message-text-generation,commit-message-generation,commit-message-prompt.--print --sandbox+ stdin contract is restored.pnpm tc:nodeand oxlint on the touched files.Cleanup: stopped only the Electron/dev PIDs from this session, removed the Docker container, temp keys, and isolated user-data. Worktree
git statuswas clean after the commit.SSH merge verdict: land. Remaining risk: very large staged diffs now travel on argv like other argv-delivery agents (Kimi/Cursor/Copilot), not stdin.
Review
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)