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.299 ·

Plugin hooks gain session identity and prompt media methods

Plugin hook modules can now call session.identity and prompt.media, mark registrations as withheld, and get fuller error details

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

Unclear What session.identity and prompt.media return or do is not stated.

What

Plugins (add-on packages that extend Claude Code) can register hooks, which are handlers Claude Code runs at certain moments. The set of methods these hook modules can call now includes:

A hook registration can also carry a withheld field. When a hook handler throws an error, Claude Code now passes the error on with the event and the data the handler received attached.

Why

This widens what plugins can do from their hooks, and the extra error details make a failing handler easier to diagnose.

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 doubtWhat `session.identity` and `prompt.media` return or do is not stated.

See this entry in the whole of v2.1.299 →

Feedback