CLAUDE_CODE_RESUME_TOLERATES_CONTEXT_APPENDS

Updated by

CLAUDE_CODE_RESUME_TOLERATES_CONTEXT_APPENDS is a Claude Code environment variable: Set to let resume keep extra user messages appended to a session's transcript instead of rejecting them as a mismatch. Read until v2.1.307. Added between v2.1.241 and v2.1.245 and still present in v2.1.332. It is not in the official reference.

StatusPresent in v2.1.332
AddedAdded between v2.1.241 and v2.1.245
CategoryContext and compaction
Official docsNot listed

How to set it

For one session, export it in the shell that starts Claude Code:

export CLAUDE_CODE_RESUME_TOLERATES_CONTEXT_APPENDS=<value>
claude

To apply it to every session, add it to the env object of a settings file:

// ~/.claude/settings.json
{
  "env": {
    "CLAUDE_CODE_RESUME_TOLERATES_CONTEXT_APPENDS": "<value>"
  }
}

Related variables

Frequently asked questions

What does CLAUDE_CODE_RESUME_TOLERATES_CONTEXT_APPENDS do?

Set to let resume keep extra user messages appended to a session's transcript instead of rejecting them as a mismatch. Read until v2.1.307.

Which Claude Code version has CLAUDE_CODE_RESUME_TOLERATES_CONTEXT_APPENDS?

Added between v2.1.241 and v2.1.245 and still present in v2.1.332.

How do I set CLAUDE_CODE_RESUME_TOLERATES_CONTEXT_APPENDS?

Export it before starting Claude Code (export CLAUDE_CODE_RESUME_TOLERATES_CONTEXT_APPENDS=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.

All variables, searchable: Claude Code environment variables.