{"version":"2.1.319","anchor":"sdk-context-usage-adds-coldresumequota","canonical_anchor":"sdk-context-usage-adds-coldresumequota","heading":"Apps built on Claude Code can warn about the cost of resuming an old session","tier":"use","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319\/e\/sdk-context-usage-adds-coldresumequota","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319","markdown":"### Apps built on Claude Code can warn about the cost of resuming an old session\n\nThe SDK's context usage reply can now include `coldResumeQuota`, so an app can warn how much of the 5-hour limit a cold resume costs\n\n**What**\n\nThe SDK lets other programs, such as a desktop app, run Claude Code and talk to it. When such a program asks how much of the context is in use, the reply can now include an optional `coldResumeQuota` field. It has two values:\n\n- `percentPerMillionTokens`: how much of your 5-hour usage limit each million tokens costs\n\n- `minPercent`: the smallest share it will cost\n\nThis is for resuming a session whose cache has expired. The cache is saved work that makes a resumed session cheaper, so a cold resume costs more.\n\n**Why**\n\nA host app can warn you before you resume an old session that it will use up part of your 5-hour limit. The field only appears when those costs are known.\n\n- Area: SDK\n- Names: `coldResumeQuota`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}