Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.333 ·

Plugin state writes accept a new optional lasts field

The plugin state store's write call now accepts an optional lasts key, and its error message names the wrong key correctly

Under the hood New Features
JSON All of v2.1.333
Under the hoodTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
Plugin APIArea: what it touches
New FeaturesKind: in v2.1.333,
New FeaturesSection of the release

Unclear What lasts does to a stored value is not stated.

What

The write call of the plugin state store, $.state.set, now accepts an optional lasts key. It joins plugin, key, id, value and ifVersion. Passing lasts is no longer rejected.

The error shown when a write contains a key the call does not accept has also been fixed. It now reports the key that was actually wrong. Before, it printed a different value.

Why

Plugin authors who write to the state store can include lasts without the write failing. If they pass a key the call does not accept, the error message now tells them which one it was.

Read from
Names in the bundlelasts
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.

Added since A small documentation edit on optimizing-for-cost-and-intelligence touched a line naming lasts after this was published. [Message threads](https://platform.claude.com/docs/en/build-with-claude/message-threads), in beta, stop the resending while a thread lasts. They lower time to first token, not cost: the model still reads the whole conversation, so keep `ca… about-claude/models/optimizing-for-cost-and-intelligence see the edit
Confirmed since Anthropic's documentation has since written up lasts, on Model configuration. If you close the prompt, no setting changes, so models on `auto` compact near 400K. In a cloud session, your answer lasts for that session. To change your answer later, run `/autocompact 1M` or `/autocompact auto` for the model you're usin… model-config see the edit
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 `lasts` does to a stored value is not stated.
Anthropic's documentation agreesAnthropic's documentation has since written up lasts, on Model configuration.
Anthropic's release notes agreeAdded lasts: "transcript" to $.state.set, so a mod's value comes back on resume and fork, follows a rewind and survives compaction

See this entry in the whole of v2.1.333 →

Feedback