diff --git a/integrations/claude-code-plugin/.claude-plugin/plugin.json b/integrations/claude-code-plugin/.claude-plugin/plugin.json index 98849838e0..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.29", + "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/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; 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}`, ); diff --git a/integrations/codex-plugin/.codex-plugin/plugin.json b/integrations/codex-plugin/.codex-plugin/plugin.json index 44fc938b8f..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.29", + "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" diff --git a/integrations/codex-plugin/hooks/hooks.json b/integrations/codex-plugin/hooks/hooks.json index 80a1f082b8..80ca4f2828 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: 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" }, { "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" }