CLAUDE_CODE_CCR_EVENT_FLUSH_POLICY
Updated by Alex Sorokoletov
CLAUDE_CODE_CCR_EVENT_FLUSH_POLICY is a Claude Code environment variable. Added in v2.1.305 and still present in v2.1.310. It is not in the official reference.
| Status | Present in v2.1.310 |
|---|---|
| Added | Added in v2.1.305 |
| Category | Other |
| Official docs | Not listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_CCR_EVENT_FLUSH_POLICY=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_CCR_EVENT_FLUSH_POLICY": "<value>"
}
}Related variables
CLAUDE_CODE_EAGER_FLUSH: Eagerly flush output buffers.CLAUDE_CODE_USE_CCR_V2: Use Claude Code Router v2 for cowork sessions.CLAUDE_CODE_CCR_EARLY_HYDRATE_PREFETCHCLAUDE_CODE_CCR_EARLY_SYNC_AFTER_SETTINGS_REFUSALCLAUDE_CODE_CCR_FOLD_FIRST_TURN_RESCANCLAUDE_CODE_CCR_SURFACECLAUDE_CODE_CCR_WORKER_SOCKETCLAUDE_CODE_JIT_POLICY_AFTER_STARTUP
Frequently asked questions
Which Claude Code version has CLAUDE_CODE_CCR_EVENT_FLUSH_POLICY?
Added in v2.1.305 and still present in v2.1.310.
How do I set CLAUDE_CODE_CCR_EVENT_FLUSH_POLICY?
Export it before starting Claude Code (export CLAUDE_CODE_CCR_EVENT_FLUSH_POLICY=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.