{"version":"2.1.331","anchor":"own-note-and-hook-text-fields-on-user-messages-gated-by-clau","canonical_anchor":"own-note-and-hook-text-fields-on-user-messages-gated-by-clau","heading":"Messages now record where they came from and whether they are hook text","tier":"soon","area":"Messages","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/own-note-and-hook-text-fields-on-user-messages-gated-by-clau","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Messages now record where they came from and whether they are hook text\n\nMessage records gain `rowSource`, `hookText` and `ownNote` labels; stop hook messages use them, user-message fields wait on `CLAUDE_CODE_SHINY_FOUNTAIN`\n\n**Unclear.** What the hook text and own-note fields are used for once switched on is not known.\n\n**What**\n\nClaude 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:\n\n- `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.\n\n- `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`.\n\n- `ownNote` can be attached to user messages, plus `ownNoteText` for one particular content value.\n\nOn 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.\n\n**Why**\n\nIn 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.\n\n- Area: Messages\n- Names: `CLAUDE_CODE_SHINY_FOUNTAIN`\n- Tier: Nothing to try yet\n- Useful: 4\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}