{"version":"2.1.225","anchor":"sdk-query-context-construction-was-consolidated","canonical_anchor":"sdk-query-context-construction-was-consolidated","heading":"SDK query context construction was consolidated","tier":"internal","area":"SDK","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.225\/e\/sdk-query-context-construction-was-consolidated","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.225","markdown":"### SDK query context construction was consolidated\n\nThe non-interactive query path builds its context in one shared place, meant to behave identically.\n\n**What**\n\nThe non-interactive query path no longer builds the same large context object inline in two places, which is intended to be behaviour-preserving.\n\n**Details**\n\n- Context is built through a shared factory called with `phase: \"input\"` and `phase: \"query\"`\n- Model and thinking configuration come from a single resolver\n- `systemPrompt` arrives pre-rendered from the prompt builder, including appendSystemPrompt and mcpClients\n- Compact-boundary handling is delegated to `applyCompactBoundary` and `flushBeforeCompactBoundary`\n\n**Evidence**\n\n`applyCompactBoundary`\n\n- Area: SDK\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 0\/5"}