Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUv65873193aada
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': () => {