From 65873193aada5bb6b033cc2d9e42aa76ae99d537 Mon Sep 17 00:00:00 2001 From: rUv Date: Mon, 9 Feb 2026 17:03:35 +0000 Subject: [PATCH] Checkpoint: File edits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic checkpoint created by Claude Code - Branch: rebrand/ruvflow-umbrella - Timestamp: 2026-02-09T17:03:35Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../cli/.claude/helpers/hook-handler.cjs | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs b/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs index e01f9af76a..bf0106cea8 100644 --- a/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs +++ b/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs @@ -139,17 +139,7 @@ const handlers = { if (!existing) { session.start && session.start(); } - } - // 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) { + } else { // Minimal session restore output const sessionId = `session-${Date.now()}`; console.log(`[INFO] Restoring session: %SESSION_ID%`); @@ -166,6 +156,15 @@ const handlers = { console.log('| Memory Entries | 0 |'); console.log('+----------------+-------+'); } + // 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 */ } + } }, 'session-end': () => {