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

rUv1b1bd649e68b
diff --git a/.claude/checkpoints/1756227652.json b/.claude/checkpoints/1756227652.json
new file mode 100644
index 0000000000..a238941e3b
--- /dev/null
+++ b/.claude/checkpoints/1756227652.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250826-170051", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/hive-mind/session-manager.js", "timestamp": "2025-08-26T17:00:52Z", "type": "pre-edit", "original_branch": "alpha97"}
diff --git a/.claude/checkpoints/1756227653.json b/.claude/checkpoints/1756227653.json
new file mode 100644
index 0000000000..51ce9e7bab
--- /dev/null
+++ b/.claude/checkpoints/1756227653.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250826-170053", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/hive-mind/session-manager.js", "timestamp": "2025-08-26T17:00:53Z", "type": "post-edit", "branch": "alpha97", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 12 ++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +++--- .claude/checkpoints/task-1756227619.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/hive-mind/session-manager.js | 6 ++++++ 6 files changed, 23 insertions(+), 4 deletions(-) "}
diff --git a/src/cli/simple-commands/hive-mind/session-manager.js b/src/cli/simple-commands/hive-mind/session-manager.js
index b2ca015bfc..733c4d45ac 100644
--- a/src/cli/simple-commands/hive-mind/session-manager.js
+++ b/src/cli/simple-commands/hive-mind/session-manager.js
@@ -1022,6 +1022,12 @@ To enable persistence, see: https://github.com/ruvnet/claude-code-flow/docs/wind
if (!session || !session.child_pids) return [];
return sessionSerializer.deserializeLogData(session.child_pids);
} else {
+ // Check if database connection is still open
+ if (!this.db || !this.db.open) {
+ console.warn('Database connection closed, cannot get child PIDs during cleanup');
+ return [];
+ }
+
// Use SQLite
const session = this.db.prepare('SELECT child_pids FROM sessions WHERE id = ?').get(sessionId);
if (!session || !session.child_pids) return [];