From b843de38fb5c8082153333d6e79a612c0e0f14f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20Mu=C3=B1oz?= Date: Sat, 14 Mar 2026 09:44:26 +0100 Subject: [PATCH] fix(hooks): add clear to SessionStart matcher The SessionStart hook only matched "startup", so it did not fire on /clear. Adding "clear" to the matcher ensures engram reloads memory context when the conversation is cleared. Closes #75 --- plugin/claude-code/hooks/hooks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/claude-code/hooks/hooks.json b/plugin/claude-code/hooks/hooks.json index ab91873..4bfb627 100644 --- a/plugin/claude-code/hooks/hooks.json +++ b/plugin/claude-code/hooks/hooks.json @@ -3,7 +3,7 @@ "hooks": { "SessionStart": [ { - "matcher": "startup", + "matcher": "startup|clear", "hooks": [ { "type": "command",