@ai-sdk/sandbox-vercel 1.0.168 Patch: Persistent Option and Policy Mutation Handling
The @ai-sdk/sandbox-vercel package introduces improvements for passing the persistent option in sandbox creation and stricter network policy mutation checks.
What changed?
@ai-sdk/sandbox-vercel version 1.0.168 introduces two key updates. First, the persistent option is now correctly passed through when creating live sandboxes from a template snapshot, allowing developers to specify persistent: false. Second, network policy mutations are now actively rejected if an existing Vercel Sandbox policy contains response rules, instead of silently dropping request restrictions.
Why does it matter to an everyday developer?
These fixes improve control and transparency for developers using Vercel sandboxes. Developers can now reliably choose whether sandboxes are persistent or not using the persistent: false setting. The improved handling of network policy mutations ensures that developers receive immediate feedback if policy modification conflicts exist, avoiding silent failures that could potentially introduce security or access issues.
What can the developer do now?
Developers should update to version 1.0.168 of @ai-sdk/sandbox-vercel to take advantage of explicit persistent option handling and clearer error reporting when working with complex sandbox network policies. No breaking changes or immediate migration steps are required, but these enhancements support more predictable sandboxing behavior and improved policy management.
