{"version":"2.1.281","anchor":"terminal-input-flushes-react-work-between-keys-in-one-read","canonical_anchor":"terminal-input-flushes-react-work-between-keys-in-one-read","heading":"Terminal input flushes React work between keys in one read","tier":"internal","area":"Terminal UI","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/terminal-input-flushes-react-work-between-keys-in-one-read","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### Terminal input flushes React work between keys in one read\n\nWhen several keypresses arrive at once, the terminal interface can now finish its screen updates between each key\n\n**Unclear.** The finding does not say when `commitsBetweenKeys()` is true.\n\n**What**\n\nClaude Code draws its terminal interface with React, a library for building user interfaces. Sometimes several keypresses arrive together in one chunk of input, for example when you type fast. When `commitsBetweenKeys()` is true, Claude Code now finishes the pending React updates after each key in the chunk, including the last one, before handling the next key.\n\n**Why**\n\nEach key's effect is applied before the next key is handled, rather than several keys being processed against the same unfinished state.\n\n- Area: Terminal UI\n- Names: `CLAUDE_CODE_COMMIT_BETWEEN_KEYS`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5"}