releases.sh

OpenAI groupId maps to AI session; LangChain spans use run names

@posthog/ai@8.6.0

July 30, 2026PostHog JSView original ↗
1 feature1 fixThis release1 featureNew capabilities1 fixBug fixesAI-tallied from the release notes
From the original release noteView original ↗

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)

Fetched July 30, 2026

OpenAI groupId maps to AI session; LangChain spans use run… — releases.sh