Skip to content

fix: skip symlinked Antigravity agent sources#8721

Open
Success6666 wants to merge 1 commit into
agno-agi:mainfrom
Success6666:fix/antigravity-agent-directory-symlinks
Open

fix: skip symlinked Antigravity agent sources#8721
Success6666 wants to merge 1 commit into
agno-agi:mainfrom
Success6666:fix/antigravity-agent-directory-symlinks

Conversation

@Success6666

Copy link
Copy Markdown
Contributor

Summary

  • skip symlinked workspace and skill files when building Antigravity inline sources
  • resolve workspace/skills roots and candidate files before reading content so inline sources stay within the agent directory
  • add regression coverage for both AntigravityTools and AntigravityAgent agent_directory loading

Fixes #8632

Tests

  • python -m pytest libs/agno/tests/unit/tools/test_antigravity.py libs/agno/tests/unit/agents/test_antigravity.py
  • python -m ruff check libs/agno/agno/tools/antigravity.py libs/agno/agno/agents/antigravity/agent.py libs/agno/tests/unit/tools/test_antigravity.py libs/agno/tests/unit/agents/test_antigravity.py
  • python -m ruff format --check libs/agno/agno/tools/antigravity.py libs/agno/agno/agents/antigravity/agent.py libs/agno/tests/unit/tools/test_antigravity.py libs/agno/tests/unit/agents/test_antigravity.py

@Success6666 Success6666 requested a review from a team as a code owner July 2, 2026 15:14
Copilot AI review requested due to automatic review settings July 2, 2026 15:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

[Security] Antigravity agent_directory follows symlinks and uploads outside files

2 participants