The Wire · Showcase
AI SDK FIXES FIREWORKS ERROR PARSING, WORKFLOW KILLS SILENT SANDBOX SIDE EFFECTS
By RepoJournal · Filed · About Vercel
The AI SDK patched a critical error-handling bug in the Fireworks provider that was silently swallowing structured error messages, while workflow's serialization layer now runs side-effect-free to prevent sandbox code execution during inspection.
Fireworks was returning errors as nested objects, but the AI SDK schema expected a bare string [1]. Parse failures fell back to HTTP reason phrases, burying the real error details. Walter Korman fixed the schema and added test coverage [2], with ai@7.0.48 shipping alongside five dependent package bumps [3] [4] [5]. Over in workflow, TooTallNate eliminated a deeper problem: serialization was triggering side effects by dispatching ordinary operations like `Array.from()` and `.toISOString()` into the sandboxed VM, executing user code at inspection time [6] [7]. The fix uses reflection primitives that stay on the host. VaguelySerious also shrunk the event-log race repro test from 1400 runs down to 14, cutting preview-deployment churn by 100x [8]. Next.js canary deprecated `experimental.useCache` and fixed hybrid Pages/App Router not-found handling [9].
One email a day. Unsubscribe in one click.
Keep up with Vercel in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Deploy AI SDK 7.0.48 to catch Fireworks structured errors vercel/ai [plan]
- → Review workflow serialization changes if you inspect VM values in production vercel/workflow [monitor]
References
- [1] fix(provider/fireworks): parse the object error envelope ↗ vercel/ai
- [2] fix(examples/fireworks): await `consumeStream` in error message test (#18316) vercel/ai
- [3] Version Packages ↗ vercel/ai
- [4] @ai-sdk/policy-opa@1.0.48 ↗ vercel/ai
- [5] @ai-sdk/react@4.0.51 ↗ vercel/ai
- [6] feat(core): side-effect-free serialization of workflow VM values ↗ vercel/workflow
- [7] feat(core): side-effect-free serialization of workflow VM values (#3257) vercel/workflow
- [8] [ci] Shrink the event-log race repro job 100x and add a local world-postgres runner ↗ vercel/workflow
- [9] v16.3.0-canary.106 ↗ vercel/next.js