From ced8ce4126523605a3b04031e55142aa74578618 Mon Sep 17 00:00:00 2001 From: Davis Martini Date: Fri, 3 Jul 2026 09:53:51 +0300 Subject: [PATCH] fix(hooks): register ToolFailureTracker + ISASync (shipped but never wired) Both hooks ship in v5.0.0 but settings.json registers neither on any event: - ToolFailureTracker.hook.ts declares TRIGGER: PostToolUseFailure and is documented under a 'PostToolUseFailure Hooks' section in hooks/README.md, but no PostToolUseFailure event exists in settings.json. - ISASync.hook.ts is the documented sole writer of session.phase/phaseHistory into work.json and is documented as a PostToolUse hook, but is never wired. Adds a PostToolUseFailure block registering ToolFailureTracker on the event its own header documents, and an async self-filtering PostToolUse entry for ISASync. No hook-body change. --- Releases/v5.0.0/.claude/settings.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Releases/v5.0.0/.claude/settings.json b/Releases/v5.0.0/.claude/settings.json index 90f7f54b84..f55f3a1ad9 100644 --- a/Releases/v5.0.0/.claude/settings.json +++ b/Releases/v5.0.0/.claude/settings.json @@ -222,6 +222,16 @@ } ] }, + { + "hooks": [ + { + "type": "command", + "command": "$HOME/.claude/hooks/ISASync.hook.ts", + "timeout": 10, + "async": true + } + ] + }, { "hooks": [ { @@ -233,6 +243,18 @@ ] } ], + "PostToolUseFailure": [ + { + "hooks": [ + { + "type": "command", + "command": "$HOME/.claude/hooks/ToolFailureTracker.hook.ts", + "timeout": 5, + "async": true + } + ] + } + ], "PreCompact": [ { "matcher": "*",