{"version":"2.1.283","anchor":"agent-hook-errors-now-report-the-actual-caught-error","canonical_anchor":"agent-hook-errors-now-report-the-actual-caught-error","heading":"Agent hook failures now show the real error","tier":"notice","area":"Hooks","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.283\/e\/agent-hook-errors-now-report-the-actual-caught-error","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.283","markdown":"### Agent hook failures now show the real error\n\nWhen an agent hook fails, the logged message and the 'Error executing agent hook:' output now carry the error that actually happened\n\n**What**\n\nHooks are commands or prompts you set up to run at certain points in a session, and an agent hook runs a small AI agent. When an agent hook fails, the error text in the log and in the \"Error executing agent hook:\" message now comes from the error that was actually raised. Before, it was taken from a different value.\n\n**Why**\n\nIf you are debugging a failing agent hook, you now see the real cause instead of a wrong or empty message.\n\n- Area: Hooks\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 0\/5"}