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

Claude Code v2.1.304 ·

Plugin hook modules gain a ui.render hook and redraw-on-press

Plugin hook modules can now be scanned for a ui.render hook, and a UI press can return a freshly drawn tree in one step

Group of 2 Under the hood Internal Changes
JSON All of v2.1.304
Under the hoodTier: how much it should matter to you
3Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
PluginsArea: what it touches
Internal ChangesKind: in v2.1.304,
What probably matters to youSection of the release

Unclear It is not clear whether mods can use the ui.render hook yet or whether it is switched off.

What

Plugin hook modules are pieces of plugin code that run when certain events happen in Claude Code, and some can draw their own interface. Changes:

  • ui.render: the list of hooks Claude Code scans modules for now includes ui.render, next to command.run, skill.prompt and classic.SubagentStop.
  • Composer drafts: the path that writes into the message box now passes decorations to fillDraft, and a render call passes detail and terminalWidth.
  • ui_press: this request, sent when a user presses something in a plugin's interface, now accepts press_id and render. When render is given, the reply includes a freshly drawn tree. If that drawing is invalidated it is retried, and the retry gives up with draw_overtaken. Before, ui_press returned only handled and element.

Why

Plugins appear to be getting a place to draw interface elements, and apps showing them can get the updated screen in the same reply as a press, without asking again.

Read from
Names in the bundleui.render
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear whether mods can use the `ui.render` hook yet or whether it is switched off.

See this entry in the whole of v2.1.304 →

Feedback