{"version":"2.1.333","anchor":"hook-output-file-path-suffix-stripped-from-additionalcontext","canonical_anchor":"hook-output-file-path-suffix-stripped-from-additionalcontext","heading":"Saved hook output file names no longer change the message text each run","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/hook-output-file-path-suffix-stripped-from-additionalcontext","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Saved hook output file names no longer change the message text each run\n\nWhen hook output is saved to a file, Claude Code now drops a random 8-character ending from the file name shown in the message text\n\n**What**\n\nA hook is a script you set up that Claude Code runs at a set point. When a hook's `additionalContext` or `blockingError` output is saved to a file, the message text gives the file's path. Claude Code now removes an 8-character ending from that file name as it appears in the message text.\n\n**Why**\n\nThe text passed on stays the same from one run to the next. This can help prompt caching, where earlier work on identical text is reused.\n\n- Area: Hooks\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}