{"version":"2.1.334","anchor":"stale-hook-and-sessionend-error-output-goes-to-the-log-when","canonical_anchor":"stale-hook-and-sessionend-error-output-goes-to-the-log-when","heading":"SessionEnd hook failures can now go to the debug log instead of the screen","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/stale-hook-and-sessionend-error-output-goes-to-the-log-when","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### `SessionEnd` hook failures can now go to the debug log instead of the screen\n\nUnder some conditions a failing `SessionEnd` hook's output now goes to the debug log rather than the error output\n\n**Unclear.** The condition that sends the failure to the debug log is not known.\n\n**What**\n\nA `SessionEnd` hook is a command Claude Code runs when a session ends. When one fails, its output used to be written to the error output every time. Under a certain condition it now goes to the debug log, a file of detailed records, instead.\n\n**Why**\n\nLess error text appears when Claude Code exits. If a `SessionEnd` hook seems to fail silently, look in the debug log.\n\n- Area: Hooks\n- Names: `SessionEnd`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}