Summary
The browser_subagent tool fails on all browser automation tasks with a Playwright installation error.
Error Message
failed to create browser context: failed to install playwright: $HOME environment variable is not set
Steps to Reproduce
- Use Antigravity agent on Windows
- Invoke any browser_subagent task (e.g., navigate to localhost:3000)
- Task fails immediately with the above error
Expected
Browser opens, navigates to URL, and allows interaction/screenshots.
Actual
All browser automation fails. Multiple retries produce the same error.
Impact
- Cannot visually verify UI changes
- Cannot capture screenshots for walkthroughs
- Cannot perform browser-based testing
Environment
- OS: Windows
- Date: January 29, 2026
Notes
This appears to be an infrastructure configuration issue where the container/environment running Playwright doesn’t have the $HOME environment variable set, which is required for Playwright installation.