{"version":"2.1.315","anchor":"startup-tool-input-handling-and-messagedisplay-hook-now-repo","canonical_anchor":"startup-tool-input-handling-and-messagedisplay-hook-now-repo","heading":"MessageDisplay hooks now report whether they changed the displayed text","tier":"internal","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315\/e\/startup-tool-input-handling-and-messagedisplay-hook-now-repo","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315","markdown":"### `MessageDisplay` hooks now report whether they changed the displayed text\n\nClaude Code now keeps track of whether a `MessageDisplay` hook actually changed the text of a message it shows\n\n**What**\n\nA hook is a command you configure to run automatically at a certain moment. A `MessageDisplay` hook runs while Claude's reply text is being displayed and can rewrite that text. Claude Code now records whether the hook's output was actually applied to the message. Before, it only passed the message along.\n\n**Why**\n\nIn practice, Claude Code can now tell a message a hook rewrote from one it left alone. Other behaviour can build on that difference.\n\n- Area: Elsewhere\n- Names: `MessageDisplay`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}