Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.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

TierUse it nowhow much it should matter to you
Useful4my rating, 1 to 5
Signal3worth watching, 1 to 5
AreaPlugin UIwhat it touches
KindNew Featuresin v2.1.271,
Group of 5 Use it now No documentation found

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

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.

Read from
Names in the bundleui.focusui.scroll

See this entry in the whole of v2.1.271 →