LangChain: Token Accounting and Async Context Fixes

Today's activity centers on correctness fixes across token usage reporting and async execution context, plus a cluster of release and infrastructure housekeeping from the core maintainer team.

Duration: PT2M32S

Episode overview

This episode is a short developer briefing from LangChain.

It explains recent repository work in plain language.

  • Show: LangChain
  • Published: 2026-08-15T13:02:16Z
  • Audio duration: PT2M32S

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 August 15th, 2026, and here's your LangChain briefing.

The clearest pattern today: token usage metadata bugs across multiple providers, all fixed the same week. In PR 39667, ChatXAI was adding reasoning tokens into output tokens but never updating the total, breaking the basic invariant that total equals input plus output. PR 39668 found a similar gap in DeepSeek, where…

Second theme: async context handling. PR 39671 fixes a real production error—when human-in-the-loop middleware ran under async invoke, it called the synchronous interrupt path directly, causing LangGraph to lose its runnable context and throw a runtime error. The fix routes it through a thread instead. Related in…

Third: retry and reliability behavior in core middleware. PR 39656 makes ModelRetryMiddleware re-raise non-retryable exceptions instead of swallowing them, aligning it with how ToolRetryMiddleware already works. That's a meaningful behavior change if you're relying on retry middleware to fail loudly.

On the maintenance side, ccurme shipped a cluster of releases—core 1.5.5, OpenAI 1.5.1, and OpenRouter 0.2.8—alongside CI work enabling the LangSmith gateway and refreshed OpenAI test…

What…

Nearby episodes from LangChain

  1. Closing the Gaps in Error Handling and Gateway Tracing
  2. Silent Failures, Fixed
  3. Weekly Recap - Silent Failures Get Loud
  4. Test Reliability, Not Feature Risk
  5. Data Integrity Cleanup Across Core and Vector Stores
  6. Silent Data Corruption, No More
  7. Closing the Gaps in Tool Safety and Silent Failures
  8. The Great Silent-Failure Cleanup