Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 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
ElsewhereArea: 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.

Read from
What the documentation says
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up clock.every, on Use the mods API. Work that outlives one event, such as checking on something once a minute, runs on a timer you start from `session.start`. A hook itself runs for one event and has a [time limit](/docs/en/plugins/mods/reference#limits) on its own execution… plugins/mods/api see the edit
Confirmed since Anthropic's documentation has since written up clock.after, on Use the mods API. Work that outlives one event, such as checking on something once a minute, runs on a timer you start from `session.start`. A hook itself runs for one event and has a [time limit](/docs/en/plugins/mods/reference#limits) on its own execution… plugins/mods/api see the edit
Confirmed since Anthropic's documentation has since written up clock.sleep, on Use the mods API. Work that outlives one event, such as checking on something once a minute, runs on a timer you start from `session.start`. A hook itself runs for one event and has a [time limit](/docs/en/plugins/mods/reference#limits) on its own execution… plugins/mods/api see the edit
Confirmed since Anthropic's documentation has since written up clock.now, on Use the mods API. Work that outlives one event, such as checking on something once a minute, runs on a timer you start from `session.start`. A hook itself runs for one event and has a [time limit](/docs/en/plugins/mods/reference#limits) on its own execution… plugins/mods/api see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up clock.now, on Use the mods API.

See this entry in the whole of v2.1.271 →

Feedback