Detect the Antigravity CLI by image name when CommandLine is empty - #445
Merged
Merged
Conversation
Contributor
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
ceiling | beeea63 | Commit Preview URL Branch Preview URL |
Sep 15 2026, 11:30 PM |
|
Warning Review limit reachedNext included review available in 57 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
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 |
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hardens Antigravity process detection for the standalone CLI (#412).
The detector's PowerShell filter already selects
agy.exeby image name, but the parser then re-derived the match from the command line. If WMI returns an emptyCommandLinefor a runningagy.exe, the emitted line was just the PID, nothing matched, and Ceiling reported "Antigravity language server not running" even though the CLI was up and its local quota API answered.The query now emits
<pid>\t<image name>\t<command line>, and a matchedagy.exe/antigravity-cliimage name is accepted even when the command line is empty. Two-column output still parses, so the existing paths are unchanged.I could not reproduce the reporter's exact failure on a Windows 11 VM: with a stand-in
agy.exe, detection matched and advanced to port discovery, and even an elevatedagy.exeexposed its CommandLine to a non-elevated query. This change covers the empty-CommandLine case, which is the most likely cause, without regressing the matched paths.Testing: cargo test (rust lib, 1237 tests), cargo clippy --all-targets -D warnings, cargo fmt --check. Added tests for the three-column line, the empty command line, and a non-Antigravity image name.
Note
Detect Antigravity CLI by image name when
CommandLineis emptyUpdates
AntigravityProviderprocess detection to capture the image name alongside PID and command line from PowerShell/WMI output. Addsis_cli_image_nameto classify processes likeagy.exeor names containingantigravity-clieven when the command line is empty. Theparse_process_infoparser now handles the new three-column format while remaining compatible with the legacy two-column format.chrome.exeMacroscope summarized beeea63.