{"version":"2.1.269","anchor":"messagedisplay-hooks-can-now-rewrite-already-streamed-text","canonical_anchor":"messagedisplay-hooks-can-now-rewrite-already-streamed-text","heading":"MessageDisplay hooks can now rewrite already-streamed text ('live' rewriting)","tier":"soon","area":"Hooks","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.269\/e\/messagedisplay-hooks-can-now-rewrite-already-streamed-text","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.269","markdown":"### MessageDisplay hooks can now rewrite already-streamed text ('live' rewriting)\n\nMessageDisplay hooks can now rewrite text already streamed to the screen, not just append to it\n\n**What**\n\nThe `MessageDisplay` hook system, which runs while assistant message text is being displayed, gained a new `onStreamingRewrite` callback along with per-turn tracking of whether text is still live, has been rewritten, or where it was resolved to. Previously hooks could only append new text as it streamed in; now a hook can go back and rewrite text that was already shown on screen before the turn finishes.\n\n**Why**\n\nThis allows hooks to correct or transform previously displayed text in real time, rather than being limited to appending, opening up more flexible live formatting or editing of streamed responses.\n\n- Area: Hooks\n- Names: `onStreamingRewrite`\n- Tier: Nothing to try yet\n- Useful: 4\/5\n- Signal: 4\/5"}