You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handle errors better, remove disable security.
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Improves stability and security in the Ad-Use demo by removing the
insecure browser flag, switching to async image generation, and clearly
surfacing failures. Also fixes image opening on Windows.
- **Bug Fixes**
- Use subprocess "start" on Windows to open images reliably.
- Raise an error when image generation fails instead of returning empty
bytes.
- **Refactors**
- Remove disable_security=True from BrowserSession.
- Switch to aio models.generate_content and return None on failure
(updated type hints and docstring).
<!-- End of auto-generated description by cubic. -->
0 commit comments