Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.271 ·

Plugins gain new UI focus/scroll and clock capabilities

Plugins can now request keyboard focus and scroll position in their UI, plus use new clock.now/sleep/after/every timer functions

Group of 5 Use it now New Features
JSON All of v2.1.271
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
Plugin APIArea: what it touches
New FeaturesKind: in v2.1.271,
What probably matters to youSection of the release

What

  • New ui.focus and ui.scroll hook events let a plugin request or commit keyboard focus onto an element it drew, and move or reveal scroll position within a transcript or pane it owns, with ownership checks so one plugin can't steal focus or scroll from another plugin's UI, and tracking of whether a person or the plugin itself initiated the action.
  • The plugin-facing $.ui object gains ui.scroll (with to/in/block options) and ui.focus (with requestId/key), plus new closeOnEscape, holdToasts, and rows options on ui.open. A third new event, ui.blit, was also registered in the event-type system.
  • A new $.clock plugin API adds now(), sleep(ms), after(ms, fn), and every(ms, fn), each validated to require non-negative millisecond counts and wired through cancellation/abort signals.

Why These additions give plugins finer control over their own UI (focus and scrolling, without interfering with other plugins) and a built-in way to schedule timed or repeating work, instead of needing to work around the host for either.

See this entry in the whole of v2.1.271 →

Feedback