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

rUva2288879f6d8
diff --git a/.claude/checkpoints/task-1756227619.json b/.claude/checkpoints/task-1756227619.json
new file mode 100644
index 0000000000..71fa0aca52
--- /dev/null
+++ b/.claude/checkpoints/task-1756227619.json
@@ -0,0 +1 @@
+{"checkpoint": "task-20250826-170018", "task": "its the exit that is causing the issue, otherwise it seems to work. ✓ Claude Code completed succes", "timestamp": "2025-08-26T17:00:19Z", "commit": "dfd81774bab58292188625e0e57d9427b6c35138", "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 93bf417328..b2ca015bfc 100644
--- a/src/cli/simple-commands/hive-mind/session-manager.js
+++ b/src/cli/simple-commands/hive-mind/session-manager.js
@@ -983,6 +983,12 @@ To enable persistence, see: https://github.com/ruvnet/claude-code-flow/docs/wind
return true;
}
+ // Check if database connection is still open before operations
+ if (!this.db || !this.db.open) {
+ console.warn('Database connection closed, cannot remove child PID during cleanup');
+ return false;
+ }
+
const session = this.db.prepare('SELECT child_pids FROM sessions WHERE id = ?').get(sessionId);
if (!session) return false;