Skip to content

fix(Antigravity): Add binaryFallbacks for antigravity parser#77

Open
umar-mq wants to merge 1 commit into
yigitkonur:mainfrom
umar-mq:main
Open

fix(Antigravity): Add binaryFallbacks for antigravity parser#77
umar-mq wants to merge 1 commit into
yigitkonur:mainfrom
umar-mq:main

Conversation

@umar-mq

@umar-mq umar-mq commented Jun 27, 2026

Copy link
Copy Markdown

Summary

  • Updated registery.ts to include agy as a binary fallback for antigravity.
  • Fixes Error: Tool not available: Antigravity. Is it installed and on your PATH? error.

Open in Devin Review

Summary by cubic

Add agy as a binary fallback for the Antigravity parser so the CLI can detect the tool when installed under that name, fixing "Tool not available: Antigravity" PATH errors.

Written for commit a9cf242. Summary will update on new commits.

Review in cubic

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Open in Devin Review

Comment thread src/parsers/registry.ts

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Resume command display for Antigravity doesn't mention the alternative binary name

The resume display string only shows antigravity (resumeCommandDisplay: () => \antigravity`atsrc/parsers/registry.ts:902) even though a fallback binary agy` was added, so users who have only the shorthand installed see a command they cannot run.

Impact: Users who installed the agy alias instead of antigravity will see an incorrect manual resume command in the TUI.

Inconsistency with established Cursor binary-fallback pattern

The existing Cursor adapter at src/parsers/registry.ts:772-777 follows the convention of listing the fallback in the display string:

binaryFallbacks: ['agent'],
resumeCommandDisplay: (s) => `cursor-agent --resume ${s.id} (or: agent --resume ${s.id})`,

The Antigravity adapter adds binaryFallbacks: ['agy'] at line 897 but leaves resumeCommandDisplay at line 902 unchanged as () => \antigravity`. To be consistent, it should read something like () => `antigravity (or: agy)``.

The actual binary resolution in src/utils/resume.ts:309-316 (resolveToolBinaryName) correctly iterates over both candidates, so execution will work. But the display string shown to users (used by getResumeCommand at src/utils/resume.ts:358) will only show antigravity.

(Refers to line 902)

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread src/parsers/registry.ts
// is unset, so changes to that var must also invalidate the index cache.
extraEnvVars: ['GEMINI_CLI_HOME', 'ANTIGRAVITY_STATE_DB'],
binaryName: 'antigravity',
binaryFallbacks: ['agy'],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Info: Binary fallback resolution works correctly for execution

While the resumeCommandDisplay inconsistency was flagged as a bug, the actual binary resolution logic in src/utils/resume.ts:309-316 (resolveToolBinaryName) iterates through all candidates from getToolBinaryCandidates (src/utils/resume.ts:27-31), which correctly includes both antigravity and agy. So the tool will functionally work for users who only have agy installed — the issue is only in the display string shown to the user.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread src/parsers/registry.ts
// is unset, so changes to that var must also invalidate the index cache.
extraEnvVars: ['GEMINI_CLI_HOME', 'ANTIGRAVITY_STATE_DB'],
binaryName: 'antigravity',
binaryFallbacks: ['agy'],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Info: No test coverage for the new Antigravity binaryFallbacks

The existing test suite has a test for Cursor's binaryFallbacks at src/__tests__/forward-flags.test.ts:48 (expect(adapters.cursor.binaryFallbacks).toEqual(['agent'])), but this PR does not add an analogous test for Antigravity's new binaryFallbacks: ['agy']. REVIEW.md says 'PRs that add source files under src/ but do not touch any test files should be flagged', but this PR modifies (rather than adds) a source file, so it's a soft concern rather than a rule violation. A simple assertion like expect(adapters.antigravity.binaryFallbacks).toEqual(['agy']) would be consistent with existing patterns.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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.

1 participant