Claude Code v2.1.225 ·
SDK query context construction was consolidated
The non-interactive query path builds its context in one shared place, meant to behave identically.
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
SDKArea: what it touches
Internal ChangesKind: in v2.1.225,
Internal ChangesSection of the release
What
The non-interactive query path no longer builds the same large context object inline in two places, which is intended to be behaviour-preserving.
Details
- Context is built through a shared factory called with
phase: "input" and phase: "query" - Model and thinking configuration come from a single resolver
systemPrompt arrives pre-rendered from the prompt builder, including appendSystemPrompt and mcpClients- Compact-boundary handling is delegated to
applyCompactBoundary and flushBeforeCompactBoundary
Evidence
applyCompactBoundary
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.1.225 →