Source Intelligence
Reading a new release v2.1.251 Analysing changes · 2/5 Writing the entries · 2/4 steps 470 findings $18.91 so far

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.0.24 Home All releases olderv2.0.23 v2.0.25newer
Claude Code v2.0.24

Keyboard Event Propagation Control

What: Keyboard event handlers can now stop event propagation to other handlers using event.stopImmediatePropagation().

How to use:

// For developers building on Claude Code's UI framework
useInput((input, key, event) => {
  if (input === 'q' && shouldQuit) {
    event.stopImmediatePropagation();  // Prevent other handlers from running
    handleQuit();
  }
});

Details:

  • Third parameter added to keyboard event handlers containing the event object
  • Enables priority-based event handling for modal dialogs, focus management, and vim-mode implementations
  • Backward compatible - existing handlers with 2 parameters continue to work
  • Implements DOM-style event propagation patterns
  • Evidence: New VO1 event class at line 71066, B11 base class with stopImmediatePropagation() at line 69922, and updated callback signature in QT9() at line 71693 in pretty-v2.0.24.js

See this entry in the whole of v2.0.24 →