github PostHog/posthog-js @posthog/ai@8.6.0

6 hours ago

8.6.0

Minor Changes

  • #4335 9a453b9 Thanks @marco-g-pm! - The OpenAI Agents SDK groupId now also maps to $ai_session_id on $ai_trace and span events, so grouped runs show up as sessions in PostHog AI observability. $ai_group_id is still emitted alongside it.
    (2026-07-30)

Patch Changes

  • #4336 1eb04c1 Thanks @marco-g-pm! - Fix LangChain spans being named after their class instead of the runnable. LangChain passes runName as a bare string, which the name resolver skipped because it only inspected object arguments, so every tool span was captured as DynamicStructuredTool rather than the tool's own name.
    (2026-07-30)

Don't miss a new posthog-js release

NewReleases is sending notifications on new releases.