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: Edit /workspaces/claude-code-flow/src/cli/simple-commands/hive-mind/session-manager.js

rUv72efeed9be3e
diff --git a/.claude/checkpoints/task-1756225156.json b/.claude/checkpoints/task-1756225156.json
new file mode 100644
index 0000000000..4d86084fb5
--- /dev/null
+++ b/.claude/checkpoints/task-1756225156.json
@@ -0,0 +1 @@
+{"checkpoint": "task-20250826-161915", "task": "this error is back. @ruvnet ➜ /workspaces/neural-flow-trader (main) $ npx claude-flow@alpha hive-m", "timestamp": "2025-08-26T16:19:16Z", "commit": "2bf0861744c33bcd11a2f46631e580a078eaedbb", "github_release": "true"}
diff --git a/src/cli/simple-commands/hive-mind/session-manager.js b/src/cli/simple-commands/hive-mind/session-manager.js
index 2aa1fe1652..9cfd709378 100644
--- a/src/cli/simple-commands/hive-mind/session-manager.js
+++ b/src/cli/simple-commands/hive-mind/session-manager.js
@@ -160,11 +160,17 @@ To enable persistence, see: https://github.com/ruvnet/claude-code-flow/docs/wind
return;
}
try {
- // Check if parent_pid column exists
+ // Check if required columns exist
const columns = this.db.prepare('PRAGMA table_info(sessions)').all();
+ const hasSwarmName = columns.some((col) => col.name === 'swarm_name');
const hasParentPid = columns.some((col) => col.name === 'parent_pid');
const hasChildPids = columns.some((col) => col.name === 'child_pids');
+ if (!hasSwarmName) {
+ this.db.exec('ALTER TABLE sessions ADD COLUMN swarm_name TEXT');
+ console.log('Added swarm_name column to sessions table');
+ }
+
if (!hasParentPid) {
this.db.exec('ALTER TABLE sessions ADD COLUMN parent_pid INTEGER');
console.log('Added parent_pid column to sessions table');