Nothing to try yetTier: how much it should matter to you
2Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
Terminal UIArea: what it touches
In DevelopmentKind: in v2.1.326,
In DevelopmentSection of the release
Unclear Exactly which typed input the guard discards is not confirmed.
What
Claude Code has an early key guard that appears to clear away keystrokes typed before its screen is ready. It is controlled two ways:
A server-controlled switch, which falls back to off, so the guard does nothing unless it is switched on remotely.
The environment variable CLAUDE_CODE_DISABLE_EARLY_KEY_GUARD, which wins over the switch. Setting it to any true value turns the guard off, and setting it to a false value such as 0 turns it on.
An environment variable is a named value you set in your shell before starting Claude Code.
Why
It changes how typed input is handled while Claude Code starts, and the environment variable lets you turn it off if it ever gets in your way.
Nothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.
This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.326: off
These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.