Follow Discord
Sweep 23 Nov 2026 · 19:13Z Build v2.1.331 548 read Stable v2.1.323 Latest v2.1.330 Next v2.1.331 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.331 ·

Messages now record where they came from and whether they are hook text

Message records gain rowSource, hookText and ownNote labels; stop hook messages use them, user-message fields wait on CLAUDE_CODE_SHINY_FOUNTAIN

Group of 2 Nothing to try yet Notable No documentation found In Development
JSON All of v2.1.331
Nothing to try yetTier: how much it should matter to you
4Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
MessagesArea: what it touches
In DevelopmentKind: in v2.1.331,
What probably matters to youSection of the release

Unclear What the hook text and own-note fields are used for once switched on is not known.

What

Claude Code keeps a record of every message in a conversation. Until now a message was built with only its content and a flag saying whether it was a behind-the-scenes ("meta") message. This release adds new labels to those records:

  • rowSource records where a message came from. A stop hook's blocking message gets its source from stopBlockRowSource(hook). Other meta messages are tagged "local", and task notifications are tagged "harness". The builder for user messages also gains a rowSource field.
  • hookText marks text that came from a hook, which is a script you configure to run at set points. A stop hook runs when Claude is about to finish its turn, and when it blocks Claude from finishing, its error message is now created with hookText set. On user messages, hookText comes with a companion field, hookTextLead.
  • ownNote can be attached to user messages, plus ownNoteText for one particular content value.

On user messages, hookText and ownNote are attached only when a check passes. Two identical copies of that check exist, one for each field. The check first reads the environment variable CLAUDE_CODE_SHINY_FOUNTAIN, which is a setting you can give a program when you start it. If that variable is not set, the check falls back to the remote flag bot_protected_tengu_shiny_fountain, a switch Anthropic's servers control. Nothing has been read about this flag, and the value it falls back to was not resolved.

Why

In practice, the conversation record can now tell apart messages that came from hooks, from Claude Code itself and from task notifications. You see nothing new on screen. The extra fields on user messages stay dormant unless the environment variable or the server flag turns them on.

Read from
Names in the bundleCLAUDE_CODE_SHINY_FOUNTAIN
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 the hook text and own-note fields are used for once switched on is not known.

See this entry in the whole of v2.1.331 →

Feedback