From c798bc3514d7f3cf3a4f757d71e93d18ac50c193 Mon Sep 17 00:00:00 2001 From: zlareb1 Date: Tue, 17 Nov 2026 13:43:49 +0000 Subject: [PATCH 1/5] Codex hooks have descriptive Loom labels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show each hook’s purpose in the hooks browser through statusMessage metadata. Signed-off-by: zlareb1 --- .../.claude-plugin/plugin.json | 2 +- .../codex-plugin/.codex-plugin/plugin.json | 2 +- integrations/codex-plugin/hooks/hooks.json | 22 +++++++++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/integrations/claude-code-plugin/.claude-plugin/plugin.json b/integrations/claude-code-plugin/.claude-plugin/plugin.json index 98849838e0..348876dea6 100644 --- a/integrations/claude-code-plugin/.claude-plugin/plugin.json +++ b/integrations/claude-code-plugin/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "loom", "displayName": "ClickHouse Loom", - "version": "1.2.29", + "version": "1.2.30", "description": "Shared long-term memory and code intelligence for Claude Code, self-hosted on ClickHouse. MCP tools to save and recall decisions, preferences and corrections across sessions and teammates; lifecycle hooks that capture each session with no model call; a code index that answers where-is, who-calls and blast-radius questions with line-accurate units instead of whole-file reads.", "author": { "name": "ClickHouse" diff --git a/integrations/codex-plugin/.codex-plugin/plugin.json b/integrations/codex-plugin/.codex-plugin/plugin.json index 44fc938b8f..1577fd6b5b 100644 --- a/integrations/codex-plugin/.codex-plugin/plugin.json +++ b/integrations/codex-plugin/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "loom", - "version": "1.2.29", + "version": "1.2.30", "description": "Shared long-term memory and code intelligence for Codex, self-hosted on ClickHouse. MCP tools to save and recall decisions, preferences and corrections across sessions and teammates; lifecycle hooks that capture each session with no model call; a code index that answers where-is, who-calls and blast-radius questions with line-accurate units instead of whole-file reads.", "author": { "name": "ClickHouse" diff --git a/integrations/codex-plugin/hooks/hooks.json b/integrations/codex-plugin/hooks/hooks.json index 80a1f082b8..1ebdc20850 100644 --- a/integrations/codex-plugin/hooks/hooks.json +++ b/integrations/codex-plugin/hooks/hooks.json @@ -7,6 +7,7 @@ "hooks": [ { "type": "command", + "statusMessage": "Loom: Load session context", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-session-start.mjs\" SessionStart codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-session-start.mjs\" SessionStart codex" } @@ -18,16 +19,19 @@ "hooks": [ { "type": "command", + "statusMessage": "Loom: Record the prompt", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-run.mjs\" UserPromptSubmit codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-run.mjs\" UserPromptSubmit codex" }, { "type": "command", + "statusMessage": "Loom: Recall relevant memories", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-prompt-recall.mjs\" UserPromptSubmit codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-prompt-recall.mjs\" UserPromptSubmit codex" }, { "type": "command", + "statusMessage": "Loom: Load prompt context", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-prompt-pack.mjs\" UserPromptSubmit codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-prompt-pack.mjs\" UserPromptSubmit codex" } @@ -40,6 +44,7 @@ "hooks": [ { "type": "command", + "statusMessage": "Loom: Look up indexed code", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-code-shunt.mjs\" PreToolUse codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-code-shunt.mjs\" PreToolUse codex" } @@ -50,6 +55,7 @@ "hooks": [ { "type": "command", + "statusMessage": "Loom: Load file context", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-file-context.mjs\" PreToolUse codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-file-context.mjs\" PreToolUse codex" } @@ -62,6 +68,7 @@ "hooks": [ { "type": "command", + "statusMessage": "Loom: Show memory guidance", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-mentor-hint.mjs\" PostToolUse codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-mentor-hint.mjs\" PostToolUse codex" } @@ -72,6 +79,7 @@ "hooks": [ { "type": "command", + "statusMessage": "Loom: Check change impact", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-blast-radius.mjs\" PostToolUse codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-blast-radius.mjs\" PostToolUse codex" } @@ -82,6 +90,7 @@ "hooks": [ { "type": "command", + "statusMessage": "Loom: Capture session activity", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-capture.mjs\" PostToolUse codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-capture.mjs\" PostToolUse codex" } @@ -93,16 +102,19 @@ "hooks": [ { "type": "command", + "statusMessage": "Loom: Capture session activity", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-capture.mjs\" PreCompact codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-capture.mjs\" PreCompact codex" }, { "type": "command", + "statusMessage": "Loom: Save working context", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-working-memory.mjs\" PreCompact codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-working-memory.mjs\" PreCompact codex" }, { "type": "command", + "statusMessage": "Loom: Save a session brief", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-session-brief.mjs\" PreCompact codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-session-brief.mjs\" PreCompact codex" } @@ -114,31 +126,37 @@ "hooks": [ { "type": "command", + "statusMessage": "Loom: Capture session activity", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-capture.mjs\" Stop codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-capture.mjs\" Stop codex" }, { "type": "command", + "statusMessage": "Loom: Save conversation turns", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-conversation.mjs\" Stop codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-conversation.mjs\" Stop codex" }, { "type": "command", + "statusMessage": "Loom: Check required tests", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-test-gate.mjs\" Stop codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-test-gate.mjs\" Stop codex" }, { "type": "command", + "statusMessage": "Loom: Check task validation", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-validate-gate.mjs\" Stop codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-validate-gate.mjs\" Stop codex" }, { "type": "command", + "statusMessage": "Loom: Check memory health", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-namespace-health.mjs\" Stop codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-namespace-health.mjs\" Stop codex" }, { "type": "command", + "statusMessage": "Loom: Save working context", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-working-memory.mjs\" Stop codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-working-memory.mjs\" Stop codex" } @@ -150,21 +168,25 @@ "hooks": [ { "type": "command", + "statusMessage": "Loom: Capture session activity", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-capture.mjs\" SessionEnd codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-capture.mjs\" SessionEnd codex" }, { "type": "command", + "statusMessage": "Loom: Close the session run", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-run.mjs\" SessionEnd codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-run.mjs\" SessionEnd codex" }, { "type": "command", + "statusMessage": "Loom: Save session memories", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-session-memory.mjs\" SessionEnd codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-session-memory.mjs\" SessionEnd codex" }, { "type": "command", + "statusMessage": "Loom: Save a session brief", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-session-brief.mjs\" SessionEnd codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-session-brief.mjs\" SessionEnd codex" } From ee0f37897c652171834bf6b3d7cdd36710c60ef9 Mon Sep 17 00:00:00 2001 From: zlareb1 Date: Tue, 17 Nov 2026 13:46:52 +0000 Subject: [PATCH 2/5] The validation hook label names session memories The hook validates memory keys written during the session. Signed-off-by: zlareb1 --- integrations/codex-plugin/hooks/hooks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/codex-plugin/hooks/hooks.json b/integrations/codex-plugin/hooks/hooks.json index 1ebdc20850..80ca4f2828 100644 --- a/integrations/codex-plugin/hooks/hooks.json +++ b/integrations/codex-plugin/hooks/hooks.json @@ -144,7 +144,7 @@ }, { "type": "command", - "statusMessage": "Loom: Check task validation", + "statusMessage": "Loom: Validate session memories", "command": "sh \"${PLUGIN_ROOT}/bin/loom-node\" \"${PLUGIN_ROOT}/hooks/loom-validate-gate.mjs\" Stop codex", "commandWindows": "node \"${PLUGIN_ROOT}/hooks/loom-validate-gate.mjs\" Stop codex" }, From 791d306d11a62dc9014b33b95844f07666243df8 Mon Sep 17 00:00:00 2001 From: zlareb1 Date: Tue, 17 Nov 2026 17:59:07 +0000 Subject: [PATCH 3/5] The Codex hook contract accepts display labels Keep the handler-field allowlist aligned with the supported statusMessage field. Signed-off-by: zlareb1 --- integrations/claude-code-plugin/tests/hooks-json.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/claude-code-plugin/tests/hooks-json.test.mjs b/integrations/claude-code-plugin/tests/hooks-json.test.mjs index ead72524fb..f321c40298 100644 --- a/integrations/claude-code-plugin/tests/hooks-json.test.mjs +++ b/integrations/claude-code-plugin/tests/hooks-json.test.mjs @@ -43,7 +43,7 @@ test("the Codex hooks.json carries only the fields Codex's strict parser accepts assert.deepEqual( // commandWindows: what Codex 0.131+ runs on Windows, through cmd.exe; // earlier builds ignore an unknown handler key (only top-level keys are strict) - Object.keys(h).filter((k) => !["type", "command", "commandWindows", "timeout"].includes(k)), + Object.keys(h).filter((k) => !["type", "command", "commandWindows", "timeout", "statusMessage"].includes(k)), [], `${event}: ${h.command}`, ); From 930cb5db909ecbc31b5473efd35dfbb15fe97685 Mon Sep 17 00:00:00 2001 From: zlareb1 Date: Tue, 17 Nov 2026 20:28:12 +0000 Subject: [PATCH 4/5] Fail-open retries use independent hook sessions Give each retry a new session so cached empty lookups do not suppress its request. Signed-off-by: zlareb1 --- .../claude-code-plugin/tests/code-hooks-failopen.test.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/integrations/claude-code-plugin/tests/code-hooks-failopen.test.mjs b/integrations/claude-code-plugin/tests/code-hooks-failopen.test.mjs index 66f9354f88..d5f00ed443 100644 --- a/integrations/claude-code-plugin/tests/code-hooks-failopen.test.mjs +++ b/integrations/claude-code-plugin/tests/code-hooks-failopen.test.mjs @@ -341,7 +341,12 @@ test("blast radius and file context: 401 and a hanging server add nothing to the let r; for (let attempt = 0; attempt < 3; attempt++) { arrived.delete(op); - r = await run(hook, edit, { tmp, url, env: { LOOM_HOOK_TIMEOUT_MS: "500", LOOM_HOOK_EXIT_MS: "500" } }); + // A failed lookup caches silence; each retry must exercise a fresh session. + r = await run( + hook, + { ...edit, session_id: `s-${hook}-${attempt}` }, + { tmp, url, env: { LOOM_HOOK_TIMEOUT_MS: "500", LOOM_HOOK_EXIT_MS: "500" } }, + ); assert.equal(r.code, 0, `${hook} ${status}`); assert.equal(r.out, "", `${hook} ${status}`); if (arrived.has(op)) break; From 32b85b86c5b3cd77ec6356f0086aaa84e6c23240 Mon Sep 17 00:00:00 2001 From: zlareb1 Date: Wed, 18 Nov 2026 07:58:23 +0000 Subject: [PATCH 5/5] Hook labels use a distinct plugin version Publish the hook labels with a plugin version distinct from other pending changes. Signed-off-by: zlareb1 --- integrations/claude-code-plugin/.claude-plugin/plugin.json | 2 +- integrations/codex-plugin/.codex-plugin/plugin.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/claude-code-plugin/.claude-plugin/plugin.json b/integrations/claude-code-plugin/.claude-plugin/plugin.json index 348876dea6..f96c1b8f9f 100644 --- a/integrations/claude-code-plugin/.claude-plugin/plugin.json +++ b/integrations/claude-code-plugin/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "loom", "displayName": "ClickHouse Loom", - "version": "1.2.30", + "version": "1.2.31", "description": "Shared long-term memory and code intelligence for Claude Code, self-hosted on ClickHouse. MCP tools to save and recall decisions, preferences and corrections across sessions and teammates; lifecycle hooks that capture each session with no model call; a code index that answers where-is, who-calls and blast-radius questions with line-accurate units instead of whole-file reads.", "author": { "name": "ClickHouse" diff --git a/integrations/codex-plugin/.codex-plugin/plugin.json b/integrations/codex-plugin/.codex-plugin/plugin.json index 1577fd6b5b..8cecb368c9 100644 --- a/integrations/codex-plugin/.codex-plugin/plugin.json +++ b/integrations/codex-plugin/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "loom", - "version": "1.2.30", + "version": "1.2.31", "description": "Shared long-term memory and code intelligence for Codex, self-hosted on ClickHouse. MCP tools to save and recall decisions, preferences and corrections across sessions and teammates; lifecycle hooks that capture each session with no model call; a code index that answers where-is, who-calls and blast-radius questions with line-accurate units instead of whole-file reads.", "author": { "name": "ClickHouse"