LangChain: Token Accounting and Duplicate Fixes
Multiple chat model integrations shipped fixes for token usage reporting and mutation bugs, while three separate contributors independently submitted the same fix for a tool-schema bug, exposing coordination gaps around triage.
Duration: PT2M41S
Episode overview
This episode is a short developer briefing from LangChain.
It explains recent repository work in plain language.
- Show: LangChain
- Published: 2026-07-10T13:02:37Z
- Audio duration: PT2M41S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Good morning. It's July 10th, 2026, and this is LangChain.
The clearest signal today: token usage accounting is getting hardened across providers, and the fixes are converging on the same pattern.
Fireworks led the way. PR 38751, merged by Mason Daugherty, fixes nested token usage crashing during batched generate calls and now surfaces cached prompt tokens properly in usage metadata. That same recursive-merge pattern shows up again in PR 38759, where Groq's combine outputs function was mutating the caller's…
Second theme: mutation bugs are showing up repeatedly. Beyond Groq's token dictionary mutation, PR 38778 fixes ChatAnthropic's bind-tools method silently modifying the caller's own tool-choice dictionary. Small, sneaky class of bug, but it's now been caught twice this week.
Third, and worth flagging for process: three separate PRs — 38752, 38770, 38771, and 38772 — all attempt to fix the same underlying issue, tool schemas breaking when a compiled graph's input type gets wrapped in a root model. Four fixes, one root cause, issue 38713. That's either a popular bug or a sign the issue…
Elsewhere: Anthropic's streaming picked up a fix for empty thinking blocks causing replay errors…
Nearby episodes from LangChain
- Schema Mismatches and a Round of Releases
- Provider Compatibility Fixes
- Chasing Down Regressions and Race Conditions
- Streaming Edge Cases and Defensive Parsing
- Weekly Recap - Streaming Reliability and Provider Edge Cases
- Provider Error Handling Grows Up
- Streaming Metadata Gets a Cleanup
- Security Hardening and Resource Leak Cleanup