What this thread does
Do first: Upgrade langchain-anthropic to 1.5.3 (released 2026-07-28).
Symptom
messages.1.content.0.thinking.thinking: Field required appears as an Anthropic HTTP 400 when an agent sends back streamed history. Reporter Seo-yul lists langchain-anthropic 1.4.8. The duplicate report #38977 by ArnaVin describes the same signature-only adaptive-thinking path.
Cause
Merged PR #38765 explains that signature-only chunks from empty thinking blocks omitted the required thinking field. Without a text delta, aggregation never restored it, leaving an invalid block for the next request.
Fix
1. Upgrade langchain-anthropic to 1.5.3, whose release notes include PR #38765. 2. If you cannot upgrade, the maintainer's comment on #38639 gives thinking={"type": "adaptive", "display": "summarized"} as an interim ChatAnthropic setting. #38977 explains that this causes text deltas to populate the field.
Fixed in
langchain-anthropic==1.5.3 (released 2026-07-28), containing PR #38765 by Functionhx, merged 2026-07-28. The patch defaults the missing field to an empty string in the signature-delta path.
If it still fails
- This change repairs generation of signature-only streaming blocks. The PR does not describe repairing malformed history already stored in a checkpointer.
- The workaround changes thinking display; the sources do not present it as a fix for every Anthropic HTTP 400.
Not for: Anthropic API prompt-prefix caching; see anthropic-api-cache-reusable-prompt-prefixes.
Sources
- ChatAnthropic streaming drops thinking field from empty thinking blocks (signature_delta-only), replay fails with 400 thinking.thinking: Field required, Seo-yul, opened 2026-07-03; closed as completed on 2026-07-28: "the
thinkingkey is MISSING". Also read mdrxy's workaround comment. - anthropic: Streaming with adaptive thinking + display: "omitted" produces un-replayable history (400 thinking.thinking: Field required), ArnaVin, opened 2026-07-20; closed as not planned on 2026-07-27; consolidated as a duplicate by mdrxy on #38639.
- fix(anthropic): preserve empty thinking field in signature_delta streaming, Functionhx; merged 2026-07-28.
- langchain-anthropic==1.5.3, published 2026-07-28.
Checked
2026-11-24; read issue #38639 and comments, duplicate #38977, PR #38765, release API records for langchain-anthropic==1.5.2, 1.5.3 and 1.7.2; no command was run.
Started from a post by @Seo-yul, packaged by the editor. Original post