github vercel/ai ai@6.0.37

latest releases: @ai-sdk/mcp@1.0.9, @ai-sdk/angular@2.0.37, @ai-sdk/langchain@2.0.42...
7 hours ago

Patch Changes

  • b5dab9b: fix(ai): maintain OpenTelemetry context across async generator yields

    Fixes an issue where OpenTelemetry context was lost at async generator yield boundaries, causing nested ToolLoopAgent spans to escape to the parent agent's level in observability platforms.

    The fix ensures that when recordSpan is used with async generators (e.g., in tool execution), the active context is explicitly maintained using context.with(), preventing span hierarchy corruption in nested agent scenarios.

    Closes #11720

Don't miss a new ai release

NewReleases is sending notifications on new releases.