diff --git a/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs b/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs index 53daa46631..e01f9af76a 100644 --- a/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs +++ b/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs @@ -139,7 +139,17 @@ const handlers = { if (!existing) { session.start && session.start(); } - } else { + } + // Initialize intelligence graph after session restore + if (intelligence && intelligence.init) { + try { + const result = intelligence.init(); + if (result && result.nodes > 0) { + console.log(`[INTELLIGENCE] Loaded ${result.nodes} patterns, ${result.edges} edges`); + } + } catch (e) { /* non-fatal */ } + } + if (!session) { // Minimal session restore output const sessionId = `session-${Date.now()}`; console.log(`[INFO] Restoring session: %SESSION_ID%`);