[DOCS] Settings env var reference missing `CLAUDE_CODE_DISABLE_1M_CONTEXT`

Resolved 💬 2 comments Opened Feb 21, 2026 by coygeek Closed Feb 21, 2026

Documentation Type

Missing documentation (feature not documented)

Documentation Location

https://code.claude.com/docs/en/settings

Section/Topic

Environment variables reference (CLAUDE_CODE_* table).

Current Documentation

The environment variable table includes many CLAUDE_CODE_* entries (for example):

| CLAUDE_CODE_MAX_OUTPUT_TOKENS | Set the maximum number of output tokens for most requests... | | CLAUDE_CODE_SIMPLE | Set to 1 to run with a minimal system prompt... | | CLAUDE_CODE_SUBAGENT_MODEL | See Model configuration |

No entry documents CLAUDE_CODE_DISABLE_1M_CONTEXT.

What's Wrong or Missing?

Claude Code v2.1.50 added CLAUDE_CODE_DISABLE_1M_CONTEXT to disable 1M context window support, but the settings reference does not describe:

  • what the variable controls,
  • accepted values,
  • default behavior,
  • how it interacts with model/context-window behavior.

Without docs, users cannot reliably discover or configure this release-added behavior.

Suggested Improvement

Add a CLAUDE_CODE_DISABLE_1M_CONTEXT row to settings with:

  • clear purpose statement,
  • accepted values and default,
  • behavior impact (disables 1M context window support),
  • cross-links to context window/model docs.

Impact

Medium - Makes feature difficult to understand

Additional Context

Source: Claude Code release v2.1.50
Release entry: "Added CLAUDE_CODE_DISABLE_1M_CONTEXT environment variable to disable 1M context window support"

Affected Pages:
| Page | Line(s) | Context |
|------|---------|---------|
| https://code.claude.com/docs/en/settings | 784-798 | CLAUDE_CODE_* table includes related env vars but omits CLAUDE_CODE_DISABLE_1M_CONTEXT |

Total scope: 1 page affected

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗